InterviewSolution
Saved Bookmarks
| 1. |
Write a program to print the worker’s informations (Name age, salary) in records format. |
|
Answer» Employees = {‘Rohan’ : {‘age’ : 20, ‘salary’ : 10000}, ‘Mohan’ : {‘age’ : 30, ‘salary’ : 15000}} for key in Employees : print “Employee”, key + ‘:’ print ‘Age :’ + str (Employees [key] [‘age’] print ‘Salary :’ + str (Employees [key] [‘salary’]) |
|