How would you go about creating a loop for taking user input without knowing beforehand exactly how many times it will run - as I can't seem to work out how to generate a unique name each time. So, for instance, say you want to take user input and ascribe each one a unique 'ID', like A001, A002, A003 and so on, how would you do that?
Possible psudocode to give you an idea of what I'm trying to do...
number = 001 while True: ID = 'A' + number ID = input('> ') if ID is 'exit': break else: number = number + 1
Edited 4 Years Ago by Luxifour: n/a