Advertisement
mrScarlett

Untitled

Jul 26th, 2017
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1. score=0
  2. name=input("Enter your name")
  3. print ("Hello", name)
  4.  
  5. koreaCapital="Seoul"
  6. q1=input("what is the capital of Korea?")
  7. if q1==koreaCapital:
  8.     print ("correct")
  9.     score=score+1
  10. else:
  11.     print("Ha HA! Incorrect")
  12.  
  13. helloAnswer="hello"
  14. q2=input("what does 안녕 mean in English?")
  15. if q2==helloAnswer:
  16.     print ("correct")
  17.     score=score+1
  18. else:
  19.     print("incorrect, the answer is Hello")
  20.  
  21. print(name,"your score is",score)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement