daily pastebin goal
31%
SHARE
TWEET

Untitled

a guest Jul 11th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top