Apr-21-2019, 05:10 PM
Hello, I am new to python (I have just started learning a week ago) and I need some help with this
Sorry for any sloppy coding and sorry if the answer is obvious.
name_program = input("Please enter you name: ") age_program = input("Please enter your age:" ) country_program = input("Please enter you location: ") print("Hello " + name_program + " so your " + age_program + " years old?") yes_no_program = input("yes or no?") if yes_no_program == "yes": print("Wow that's great") else: age_program = input("Then what is it again?") print("anyways") print("so you come from " + country_program + " heard it's a nice place")The idea is that if you respond yes to yes_no_program then it goes through to the next part but if you respond with anything else then it will repeat the age question.
Sorry for any sloppy coding and sorry if the answer is obvious.