The last part of my homework assignment is making a list that takes the users input of presidents and aligns them to the left and ranking them with numbers. This is the code I have so far
def name_pres(): pres = input("Enter the name of your favorite presidents in order <done to end>: ") repeat = True while repeat: pres = input("Enter the name of your favorite presidents in order <done to end>: ") if pres == "done": repeat = False name_pres()