Guest User

Untitled

a guest
Jul 11th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. print('Enter a number to obtain square dictionary')
  2. userNumber = int(input())
  3.  
  4. squareDictionary = {}
  5. for i in range(1, userNumber + 1):
  6. squareDictionary[i] = i*i
  7.  
  8. print(squareDictionary)
Add Comment
Please, Sign In to add comment