Why won't this run?

jbak36 j.bak36 at gmail.com
Sun Nov 15 15:38:40 EST 2015


Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) [MSC v.1900 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> #this program says hello and asks for my name
>>> print:('Hello world!')
Hello world!
>>> print:('What is your name?') #ask for their name
What is your name?
>>> myName = input()
print:('It is good to meet you,'+myName)
>>> print:('The length of your name is:')
The length of your name is:
>>> print:(len(myName))
39
>>> print:('What is your age?')#ask for their age
What is your age?
>>> myAge=input()
print:('You will be ' + str(int(myAge)+1)'in a year.')
>>> 



More information about the Python-list mailing list