This is the first time im writing a program with python and im trying to only allow the user to input 8 digits. I managed to do this and every time i enter more or less than 8 it gives the error message which is good but after that if i enter 8 digits it still gives the error message
    value3 = input("please enter your card number: ")
while not value3.isdigit():
    value3= input("please enter your card NUMBER: ")
if len(value3) > 8:
    while True:
        value3 = input("Error! Only 8 characters allowed!: ")
if len(value3) < 8:
    while True:
        value3 = input("Error! Only 8 characters allowed!: ")
 
     
     
    