Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

one line if statement python

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