Name: Anonymous 2010-11-10 1:45
I just want to ask you a question
I just try learning python 3 and realize that the input and print don't work the way I wanted
print ("A program to add up some ages")
name = input("What is your name? ")
age1 = int(input("How old are you? "))
age2 = int(input("How old is your partner? "))
print ("Between you,",name,", you are",age1+age2,"years old")
It's supposed to generate
Between you, Name , you are 20 years old
But it keeps printing
Between you, Name
, you are 20 years old
wat do?
I just try learning python 3 and realize that the input and print don't work the way I wanted
print ("A program to add up some ages")
name = input("What is your name? ")
age1 = int(input("How old are you? "))
age2 = int(input("How old is your partner? "))
print ("Between you,",name,", you are",age1+age2,"years old")
It's supposed to generate
Between you, Name , you are 20 years old
But it keeps printing
Between you, Name
, you are 20 years old
wat do?