Advertisement
Guest User

Untitled

a guest
Aug 12th, 2018
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #!/usr/bin/python
  2. #Asking for first and lastname
  3. fname = raw_input("Input your First Name : ")
  4. lname = raw_input("Input your Last Name : ")
  5. print ("Hello Good Luck " + fname + " " + lname)
  6. #creating questions and using if statement
  7. questions1 = raw_input("What is 1+1?")
  8. answer1 = ("2")
  9. if questions1 == answer1
  10. print("correct answer")
  11. elif questions1 != answer1
  12. print("incorrect answer")
  13. ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement