Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python if else one line

x = 'foo' if bar else 'baz'
Source by slgotting.com #
 
PREVIOUS NEXT
Tagged: #python #line
ADD COMMENT
Topic
Name
5+1 =