Skip to main content
Ask a Question
Asked a question last year

def dict(): x = int(input("")) d = {} print(x) for i in range(x): d[i+1]=(i+1)**2 print("output:",d,ends="") dict()<ipython-input-53-26047532697f> in <module> 7 d[i+1]=(i+1)**2 8 print("output:",d,ends="") ----> 9 dict() Type error <ipython-input-53-26047532697f> in dict() 1 import random 2 def dict(): ----> 3 x = int(input("")) 4 d = {} 5 print(x) TypeError: 'int' object is not callable

Fuel your ambition, discover your passion and achieve your professional goals with LetsUpgrade.
Sign Up Now