tape_list = ['a', 'b', 'c', 'd', 'e']

def check_tape(origin_tape):
    errors = 0
while True:
    tape = input('input %s:' % origin_tape)
if tape == origin_tape:
    return errors
else:
    print('your tape %s,you should tape %s' % (tape, origin_tape))
errors += 1
pass
all_error = 0
for char in tape_list:
    all_error += check_tape(char)
print('you input wrong time is:%s' % all_error)
Redo for loop iteration in Python