Ternary Operator

Run Settings
LanguagePython
Language Version
Run Command
# used in certain situations to keep code more clean, they are also called conditional expressions # condition_if_true if condition else condition_if_else is_friend = False can_message = "message allowed" if is_friend else "not allowed to message" print(can_message)
Editor Settings
Theme
Key bindings
Full width
Lines