Dec-21-2017, 11:42 AM
def a(): found = False pr = int(input("Enter the payroll number: ")) for a in employees: if pr==int(a[0]): print('%-30s' % (i[4]+ ','+' '+i[3]), '%30s' % i[0], '%30s' % i[1], '%30s' % i[2]) found = True return a elif pr!=int(a[0]): found = False print("There is no such employee")Still same row.