May-05-2018, 08:38 PM
(May-05-2018, 06:55 PM)buran Wrote: Post the code you have tried...
We don't have crystal ball to see what you try...
Note that the line I suggest must not be part of the function. I.e. it must not be indented
#Information about you print(''' Welcome to the Information Program! ''') first_name = input('What is your First Name?') print('Your first name is %s. ' % first_name) surname = input('What is your Surname?') print('Your Surname is %s. ' % surname) print('So, your full name is %s %s ' % (first_name,surname)) dob = input('What is your Date of Birth?') print('Your date of birth is %s. ' % dob) birth_place = input('Where were you born?') print('You were born in %s. ' % birth_place) def decision(): decision1 = input(''' Do you want your Full Information? Type Y for YES or N for NO. ''') if decision1.upper() == 'Y': print(''' Your Full name is %s %s, you were born on the %s, and born in %s. ''' % (first_name, surname, dob, birth_place)) elif decision1.upper() == 'N': print('Okay, thank you for using the Information Program!') else: print('You have typed in an invalid answer, please run the program again.') decision()