This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Which of the following statements correctly checks whether two values are equal in Python?
x = y
x == y
x === y
What does the elif keyword do?
elif
Ends an if statement.
Repeats a block of code while a condition is True.
Provides an extra condition to check when the previous condition was False.
What does the expression True and False evaluate to?
True and False
True
False
None
You must answer all questions before checking your work.
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?