Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
python value is unsubscriptable when using [:]
Lila Kari
Programming language:
Python
2021-06-08 07:57:48
0
Q:
python value is unsubscriptable when using [:]
Cygon
Code:
Python
2021-06-11 11:18:37
a = 1337 b = [1,3,3,7] print b[0] # prints 1 print a[0] # raises your exception
1
Tags
python
using
value
table
when
Related
string unmatched in python
TypeError: unhashable type: 'list' python dictionary
python if not true
isinstance in python
python conditional expression
python filter None dictionary
list unpacking python
python define propery by null
how to uninstall python
isinstance python
python Unpacking
mulitplication symbo for unpacking in python
pytorch unsqueeze
python null
not staments python
python this code is unreachable
python detect tty
New to Communities?
Join the community