Professional Documents
Culture Documents
Dictionary in Python Test
Dictionary in Python Test
Dictionary in python.
1. Give a definition to a dictionary.
________________________________________________________________
________________________________________________________________
_______________________________________________
2. look at the code, name where is the key, name of a dictionary, and values
of keys
a. Name of dictionary___________________
b. Keys______________________
c. Values_______________________
3. Create a dictionary which has 2 items or pairs. The first item has key
“Login” and its value ”User356”, the second one has key “Password” its
value 12345678. Then print out the dictionary.
4. Write a program to create any dictionary with any 3 items using built-in
dict() function.
6. Look at the code. Clear all items at once using proper method and print out
the result.
7. This is the dictionary. Delete the dictionary using the proper mehod.