When you type in the ifstatement and the terminating colon, then press Return (or enter) on your keyboard, the Python interpreter realizes you have entered a compound statement.
当键入if语句和终止的冒号,并按键盘上的回车键时,Python解释器就知道您输入了一个复合语句。
2
And "Discover Python, Part 5" introduces the concept of compound statements in Python, and the ifstatement and the while loop.