Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def not_blank(question):
- valid = False
- while not valid:
- response = input(question)
- if response == "":
- continue
- else:
- return response
- # Main Routine goes here
- recipe_name = not_blank("What is the recipe name? ")
- print("You are making {} ".format(recipe_name))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement