if [condition]: [one line of code when condition true]
if x == 0: print("Condition passed")
var = [exp] if [condition] else None
x = 1 > 0 # (True/False)
print(x)
#------------------------------------------
if (1 > 0): x = "something" # put any value
print(x)
>>> myList = []
>>> False and myList.append('myString')
False
>>> myList
[]
>>> True and myList.append('myString')
>>> myList
['myString']