Here is the example:
age = 10
reject = False
if age < 10:
st = 'Kid'
reject = True
else:
st='Adult'
reject = False
Is it possible? Something like:
statement1:statement2 if age < 10 else statement3:statment4
I am still having problems with understanding ternary operator in Python.
true-expression if condition else false-expression.globals().__setitem__('st', 'Kid'), for example.