Skip to main content
Home
No results found...
Login
Sign Up
Quick Post
Students
Programming Assignments
Python (Programming Language)
programming
python
codeavail
Computer Science Homework and Assignment Help experts
Posted 2 years ago
How to write a Python program to accept the name of employee's age and salary?
Jose Leo
2 years ago
Employee = {"Name": "John", "Age": 29, "salary":25000,"Company":"GOOGLE"}
print(type(Employee))
print("printing Employee data .... ")
print("Name : %s" %Employee["Name"])
print("Age : %d" %Employee["Age"])
print("Salary : %d" %Employee["salary"])
print("Company : %s" %Employee["Company"])
Output:
<class 'dict'>
printing Employee data ....
Name : John
Age : 29
Salary : 25000
Company : GOOGLE
0
You should join
Students
first.
Join
Share Post
print(type(Employee))
print("printing Employee data .... ")
print("Name : %s" %Employee["Name"])
print("Age : %d" %Employee["Age"])
print("Salary : %d" %Employee["salary"])
print("Company : %s" %Employee["Company"])
Output:
<class 'dict'>
printing Employee data ....
Name : John
Age : 29
Salary : 25000
Company : GOOGLE