+ 1
What should I do if I get these two errors: NZEC and type object not subscriptable, see h=list[] type something
11 ответов
+ 4
The most helpful thing at the moment would be to see your code.
+ 1
Yeah this is correct way
0
See my codes now
0
Nikhil Tale What is h = list[6] supposed to do in your code?
0
I am defining h as a list with index 6, actually first I tried to use just without index but it shown me error
0
Nikhil Tale If you’re trying to make a list with six elements just do:
h= [None, None, None, None, None, None]
0
Okay but what if I want to make a list which has variable index every time I call it
0
Nikhil Tale So what should be in the list? I’m not sure what you mean with variable index.