What you will learn
Build readable decisions using comparisons and indentation.
Common mistake
Every block header needs a colon, and statements inside the block must be indented consistently.
Build readable decisions using comparisons and indentation.
Every block header needs a colon, and statements inside the block must be indented consistently.
Experiment with the program below. Your code and input are sent to the selected compiler only when you run it.
Tab indents · Shift+Tab unindents · Esc then Tab leaves the editor · Ctrl/Cmd+Enter runs · Ctrl/Cmd+S saves a draft
Changes save automatically to your account.
82Expected output for the original program
Distinction
Output will appear here.
Educational simulation — object identities and execution steps are illustrative.