You are on page 1of 1

def update_student(): # function to update student data

upd_index = input("Enter index(From 0) to update data :")

if int(upd_index) > (len(record))+1:

print("Student data not found!!")

update_student() # Recursion if index exceeds length of record array

else:

new_name = input("ENTER NEW NAME:")

new_reg = input("ENTER NEW SR-CODE:")

new_age = input("ENTER NEW AGE:")

new_major = input("ENTER NEW MAJOR:")

new_email = input("ENTER NEW EMAIL-ID:")

new_address = input("ENTER NEW ADDRESS:")

You might also like