Computer Science, asked by devansh2909, 1 month ago

Consider the following dictionary:
employee = {‘name’: ‘Vinay Sinha’, ‘age’: 17, ‘salary’=30000, ‘dept’:’HR’}
a. Write a statement to display list of keys.
b. Write a statement to print length of the dictionary.
c. Write a statement to get the value of key dept.
d. Write a statement to display a list of values.
e. Write a statement to remove all items from the dictionary.

Answers

Answered by samruddhimote1416
1

Answer:

The circulatory system is made up ofblood vessels that carry blood away from and towards the heart. Arteries carry blood away from the heart and veins carry blood back to the heart. Thecirculatory system carries oxygen, nutrients, and hormones to cells, and removes waste products, like carbon dioxide.

Answered by rarishabhjain
1

ANSWER:

employee = {'name': 'Vinay Sinha', 'age': 17,'salary':30000, 'dept':'HR'}

a=employee.keys()

print(a)

b=len(employee)

print(b)

c=employee['dept']

print(c)

d=employee.values()

print(d)

e=employee.clear()

print(e)

dict_keys(['name', 'age', 'salary', 'dept'])

4

HR

dict_values(['Vinay Sinha', 17, 30000, 'HR'])

None

[Program finished]

Similar questions