Question: Save your completed program happy 1 . py as happy 2 . py . Inside the function make _ happy _ dict ( ) comment
Save your completed program happypy as happypy Inside the function makehappydict comment out the print statement and check that the function returns the dictionary you created in part Note that the dictionary you return from makehappydict is saved to the variable happydict in main. To test that the dictionary was correctly constructed, uncomment the call to printsorteddictionary in main This function is passed a dictionary argument and prints a sorted list of the key value pairs you added to the dictionary. The first five lines of the sorted output should now look like this:
Contents of dictionary sorted by key.
Key Value
Afghanistan
Albania
Algeria
Save and submit the completed program to Gradescope as happypy
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
