Programming MisconceptionsHomeMisconceptionsConceptsLanguagesTextbooksContributorsAbout
HomeLanguages
Python
plr3.13
The if statement

Python Language Reference, Version 3.13
8.1. The if statement

Read this Section of the Authoritative Specification

https://docs.python.org/3.13/reference/compound_stmts.html#the-if-statement

3 Documented Misconceptions

Misconception
AssignCompares
= compares two values
Misconception
ConditionalIsSequence
If-else is equivalent to sequence of two ifs
Misconception
RecursiveFunctionNeedsIfElse
A recursive function needs to contain an if-else statement

Find Misconceptions by...

Concept
Programming Language
Notional Machine
Textbook

About

About This Site
Structure and Content of the Inventory
Contributors