Write Python code to create a dictionary named squares
where each key is an integer
from 1 to 5 (inclusive), and each value is the square of the key. Use a for
loop
to populate the dictionary dynamically.
Start with an empty dictionary and iterate over the range of numbers. Assign the square of each number to the dictionary with the number itself as the key.
Sorry! There has been an error processing your answer. Please try again.