Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hi how do i solve this ?
#4
while True:
    print("Where is Moscow located at?")
    answer = input("a) Russia\nb) China\nc) Japan\nd) Mongolia\nAnswer: ")
    if answer.lower() in ("a", "russia"):
        print("Right Answer!")
        break
    else:
        print("wrong answer")
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
Hi how do i solve this ? - by Houston222 - Feb-05-2020, 03:51 PM
RE: Hi how do i solve this ? - by t4keheart - Feb-05-2020, 04:36 PM
RE: Hi how do i solve this ? - by DeaD_EyE - Feb-05-2020, 04:42 PM
RE: Hi how do i solve this ? - by buran - Feb-05-2020, 04:51 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020