Zanjo_Betchi

W5A3 : Function and Dictionary

Aug 27th, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. '''
  2. @Author: Zanjo
  3. @Date Of Creation: 27/08/18
  4. '''
  5.  
  6. def create_dictionary(n):
  7.   temp={}
  8.   for i in range(1,n+1):
  9.     temp[i]=i**2
  10.   return temp
  11.  
  12. def printDict():
  13.     print(create_dictionary(int(input())),end="")
Add Comment
Please, Sign In to add comment