def update():
    try:
        id = int(input('Enter your id:'))
    except ValueError:
        print('\nEnter valid integer  id.......')
        update()
    else:
        if (id in lid):
            r = lid.index(id)
            newname = str(input('Enter the name'))
            lname[r] = newname
            newcollege = str(input('Enter the college name:'))
            lcollege[r] = newcollege
            newbranch = str(input('Enter the branch:'))
            lbranch[r] = newbranch
        else:
            print('id didnot match........')
            print('please register yourself....')
    choice()
def update():
    try:
        id = int(input('Enter your id:'))
    except ValueError:
        print('\nEnter valid integer  id.......')
        update()
    else:
        if (id in lid):
            r = lid.index(id)
            newname = str(input('Enter the name'))
            lname[r] = newname
            newcollege = str(input('Enter the college name:'))
            lcollege[r] = newcollege
            newbranch = str(input('Enter the branch:'))
            lbranch[r] = newbranch
        else:
            print('id didnot match........')
            print('please register yourself....')
    choice()