Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- #Asking for first and lastname
- fname = raw_input("Input your First Name : ")
- lname = raw_input("Input your Last Name : ")
- print ("Hello Good Luck " + fname + " " + lname)
- #creating questions and using if statement
- questions1 = raw_input("What is 1+1?")
- answer1 = ("2")
- if questions1 == answer1
- print("correct answer")
- elif questions1 != answer1
- print("incorrect answer")
- ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement