Input Format:
Take the number n in a single line.
Output Format:
Print the dictionary d in a single line.
Desired behaviour, for input 8, a dictionary:
{1: 1, 2: 4, 3: 9, 4: 16, 5: 25, 6: 36, 7: 49, 8: 64}
What I tried:
n=int(input())
for i in range(1,n+1):
a=i*i
print("{",i,": ",a,"}",sep="")
What it gives me, for input 6:
{1: 1}
{2: 4}
{3: 9}
{4: 16}
{5: 25}
{6: 36}