Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python single line if

new_value = value_when_true if condition else value_when_false
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #single #line
ADD COMMENT
Topic
Name
8+1 =