Question: please solve both the questions, it has to be solved in python 3. Write a Python script to check whether a given key already exists

please solve both the questions, it has to be solved in python
3. Write a Python script to check whether a given key already exists in a dictionary. 4. Write a Python script to generate and print a dictionary that contains a number (between 1 and n) in the form (x, x*x). Go to the editor Sample Dictionary (n = 5): - Expected Output: {1:1, 2:4, 3:9, 4: 16,5: 25} 1 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
