Question: Project 2 - Python Basics - Dictionaries In Python: 1. Create a dictionary of at least 5 key/value pairs. 2. Add a new key/value

Project 2 - Python Basics - Dictionaries In Python: 1. Create a dictionary of at least 5 key/value pairs. 2. Add a new key/value pair to the dictionary. 3. Change one of the values through reassignment. 4. Access at least 3 values using the keys. 5. Access at least 3 keys using the values. 6. Delete an element. 7. Test for key inclusion for 3 elements. 8. Loop through the dictionary, printing out the key and value on the same line separated by a space. Keyl, valuel Key2, value2 ...
Step by Step Solution
3.46 Rating (153 Votes )
There are 3 Steps involved in it
1 Python Code with proper comments 1 Creating a Dictionary with 5 KeysValue pairs Dict 1 Good 2 For ... View full answer
Get step-by-step solutions from verified subject matter experts
