Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Conditional Expressions

In this video, you’ll meet the Conditional Expression, which is some sort of one-line if-else-statement. The basic syntax is as follows:

<statement1> if <expr> else <statement2>

Comments & Discussion

Become a Member to join the conversation.