Hey
The area you are joining strings and variable can be replaced with f strings see below.
To get a loop, a while loop can be used that when a condition is met it will break out of the loop.
The area you are joining strings and variable can be replaced with f strings see below.
To get a loop, a while loop can be used that when a condition is met it will break out of the loop.
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?") while True: print(f"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") break else: age_program = input("Then what is it again?") print("anyways") # print("so you come from " + country_program + " heard it's a nice place") print(f"so you come from {country_program} heard it's a nice place")