Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

for if else one line python

[ x if x%2 else x*100 for x in range(1, 10) ]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #line #python
ADD COMMENT
Topic
Name
1+2 =