Employee list in python

employees=[[1,’John’,’Admin’,’Manager’],[2,’Michael’,’Finance’,’Clerk’],[3,’Tom’,’Marketing’,’Supervisor’]]

for emp in employees:

    print(emp)

Output

[1, ‘John’, ‘Admin’, ‘Manager’]
[2, ‘Michael’, ‘Finance’, ‘Clerk’]
[3, ‘Tom’, ‘Marketing’, ‘Supervisor’]

Published by Python programming examples for beginners

Abhay Gadkari is an IT professional having around experience of 20+ years in IT industry. He worked on web technologies and databases with Insurance and ERP projects.