Advertisement
pleabargain

python 3 the hard way lesson 11

May 6th, 2013
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. #python 3.3
  2. #age = print ("How old are you?")
  3. name = input("What is your name?")
  4. age = int (input("How old are you? "))
  5. age2 = int(input("how old is your partner? "))
  6.  
  7. print ("Between you, ", name, " you are ", age+age2, "years old")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement