404 Not Found! قیمت ها به ۴۰۳ برگشت! به مدت محدود!
بزن بریم!input = int(input("enter dic len:")) dict = {} for i in range(input): name = input('key') values = int(input('value')) dict[name] = values print(dict)
error داره چرا؟☻
Traceback (most recent call last): File "c:/Users/gha/Desktop/gha/Untitled-۱.py", line ۷, in <module> name = input('key') TypeError: 'int' object is not callable
@ghazalehf2014 بخاطر اینکه مقدار ست شده اول input هست و جایگزین متد input خود پایتون میشه:
inp = int(input("enter dic len:")) dict = {} for i in range(inp): name = input('key') values = int(input('value')) dict[name] = values print(dict)
آیا مایل به ارسال نوتیفیکیشن و اخبار از طرف راکت هستید ؟