0
Type of list
Why when write a=[20] is type work normaly, but when we write a=list[20] is output - "object is not subscriptale?
4 Respostas
+ 3
Try a = list(20)
+ 1
When write a=list(20) is output - " 'int' object is not iterable
0
print(type(list('20')))
- 1
Ok, but why a=list[20] not work?