Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

can list comprehenios contain else

["Even" if i%2==0 else "Odd" for i in range(8)]
 
PREVIOUS NEXT
Tagged: #list #comprehenios
ADD COMMENT
Topic
Name
8+5 =