DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+7 =
Submit