- 1

# 1.With a given integral number n, write a program to generate a dictionary that contains (i, i*i) such that is an integral num

# 1.With a given integral number n, write a program to generate a dictionary that contains (i, i*i) such that is an integral number between 1 and n (both included). and then the program should print the dictionary.

13th Dec 2018, 11:32 AM
Thotla Thirupathi
Thotla Thirupathi - avatar
3 Antworten
13th Dec 2018, 11:35 AM
Thotla Thirupathi
Thotla Thirupathi - avatar
+ 1
Thank you Kishalaya Saha
13th Dec 2018, 11:46 AM
Thotla Thirupathi
Thotla Thirupathi - avatar
0
Your code looks good! Just write print(squares(8)) in the last line, and it'd print the dictionary. Hope that helps 😊
13th Dec 2018, 11:41 AM
Kishalaya Saha
Kishalaya Saha - avatar