Oct-22-2019, 02:12 PM
Is there a question? I would not that with a break statement you can simplify your input loop quite a bit:
def name_pres(): while True: pres = input("Enter the name of your favorite presidents in order <done to end>: ") if pres == "done": breakIf you want to do anything with those names you are going to need to store them. Probably by starting with an empty list and then using the append method each time a new name is entered.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures