Question: python 1. (5 points) Write a function to check if all the key:value pairs in the given dictionary are of the form 2 : 2?
1. (5 points) Write a function to check if all the key:value pairs in the given dictionary are of the form 2 : 2? + 3. Test your function with the following program. print(check({1: 4, 2: 7, 5: 28, 4: 19))) print(check({1: 4, 7: 2, 5: 28, 4: 19))) print(check({1: 4, 7: 2, 5: 28, -4: 19))) print(check({0: 3))) You should get the following output True False False True Process finished with exit code 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
