Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python oneline if statement

var = [expression1] if [condition] else [expression2]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #oneline #statement
ADD COMMENT
Topic
Name
6+5 =