Python Generate a dictionary of numbers and their squares (i, i*i) from 1 to N

Python Generate a dictionary of numbers and their squares (i, i*i) from 1 to N

Python word reference Example: Here, we will figure out how to Generate lexicon of numbers and their squares (I, i*i) from 1 to N? Given a number N, and we need to produce a word reference that contains numbers and their squares (I, i*i) utilizing Python. Example: Program: Output:

error: Alert: Content is protected!!