Haha... if your using squenson method you don't need my one. (Curse that handsome devil)
squenson method
squenson method
def a(): 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]) return else: print("There is no such employee")Also I don't like line: 6 you have a variable "i[]" but what is that to the function?... print(i)
When my code doesn't work I don't know why **think** and when my code works I don't know why **think**