How to to accept the length of a dictionary, then create key-value pairs where the key is a random integer in the range 1 to 100 and the value is the square of the integer? If I enters 5, then the output should be:
{68: 4624, 28: 784, 99: 9801, 15: 225, 6: 36}
I did some of the code, but cannot to combine with each other. I don't know where to add random
d=dict()
n=int(input("Enter a number in the range 1 to 100: ")) for i in range (100):
d[i]=i**i
print(d)