def not_blank(question): """checks that the users reponce is not blank""" while True: response = input(question) if response !="": return response print("Sorry, this cant be blank. please try again.\n") #main routine starts here who = not_blank ("please enter your name: ") print(f"hello {who}")