Jul-08-2017, 07:28 PM
(Jul-08-2017, 07:19 PM)ichabod801 Wrote: Sorry, I got my posts mixed up. I thought this was one without any code.What if I were to do:
data = {'1': 'abcde', '2': '2357', '3': '11235'} while True: pin = input('pin? ') if pin in data: text = data[pin] while True: index = int(input('index? ')) if index < 0: break else: print(text[index]) elif pin[0] not in 'qQ': print('Invalid pin.') else: breakUntested, but that's the general idea.
for Val in account:
if pin1 == pin:
Print...............
else:
print(error)
Sorry but I'm a beginner at this so I don't understand your code ?%