Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python ternary statement

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