Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

one liner if else replacement in python

>>> a = "Hello" if foo() else "Goodbye"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #liner #replacement #python
ADD COMMENT
Topic
Name
8+2 =