name = input('Enter name of Student: ') cnic = input('Enter ID of Student: ') while not valid: