Cabinet
Member's benefits
Create study meterials
Subscribe for quizzes
Practice in Flashcards mode
Practice in Quiz mode
Track your progress and identify weak spots
Add explanations
Discuss topics with others
Create and join study groups
Have fun and connect with friends!
Sign In
Sign in
Register
Discover
Study materials
Study groups
Announcements
Practice
Please sign in to practice
0%
Score
If statement
{% if option1 %}
<p>This is first option</p>
{% elif option2 %}
<p>not first, but second option</p>
{% else %}
<p>no matches </p>
{% endif %}
0 explanations
Explanations are useful to guide through learning process and confirm that the correct answer is indeed correct.
Only registered users can add explanations
Facebook
Twitter
Similar questions:
Inline if statement:
if x:
y=100
else:
y=20
y=100 if x else 20
Python tricks
0 explanations
Explanations are useful to guide through learning process and confirm that the correct answer is indeed correct.
Only registered users can add explanations