Back to Lesson
Validation Ternary
Execute instant inline state toggles.
Instructions
- Given a dynamic system variable.
speed = 120 - Use an inline conditional ternary operator:.
X if conditional else Y - Render a variable statingif the speed is over
"Fast", or100otherwise. Print the value."Normal"
main.py
main.py
Ctrl + Enter