Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

list expression inside bracket python

d = {'0':'X', '1':'Y', '2':'Z'}
lst = [d[coord] if coord in d else coord for coord in printready]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #list #expression #bracket #python
ADD COMMENT
Topic
Name
6+9 =