Home / Video /
Learn Python CONDITIONAL EXPRESSIONS in 5 minutes! ❓
Title
:
Learn Python CONDITIONAL EXPRESSIONS in 5 minutes! ❓
Duration
:
05:33
Viewed
:
5,801
Published
:
25-05-2024
Source
:
Youtube
# conditional expression = A one-line shortcut for the if-else statement (ternary operator)
# Print or assign one of two values based on a condition
# X if condition else Y