+ 2

Need help with Python syntax error

Hi, I'm just practicing some simple input and printing but can't get this code to work, can anyone point out what it is i have done wrong with the following, keeps giving me a syntax error on the first print line: my_name = input("Please enter your name: ") my_age = input("Please enter your age: ") my_gender = input("Are you male or female: ") my_height = input("Please enter your height in centimeters: ") my_weight = input("Please enter your weight in pounds: ") my_eyes = input("What color are your eye's: ") my_hair = input("What color is your hair: ") male = "He" female = "She" print 'Lets talk about {}.'.format(my_name) print '{0} is {1} years old.'.format(my_gender, my_age) print '{0} is {1} centimeters tall.'.format(my_gender, my_height) print '{0} is {1} pounds in weight.'.format(my_gender, my_weight) print ("Actually that's not too heavy.") print '{0} has got {1} color eyes and {2} color hair.'.format(my_gender, my_eyes, my_hair) Thanks

21st Feb 2017, 12:39 PM
Rob Hitchings
1 Respuesta