1/3
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
Definition of Syntax Rules:
The strict set of grammatical rules governing how a programming language must be structured so the compiler or interpreter can understand
question
What are the strict rules regarding Python keywords, variable names, and code blocks?
The 3 Rules to Remember
Case Sensitivity: Built-in commands are entirely lowercase. Writing Def or Input instead of def or input creates an immediate breakdown.
Variable Identifiers: Variable names must be single continuous strings. Blank spaces are illegal (e.g., Total mileage must be written as total_mileage).
Indentation Blocks: Python does not use curly brackets {} to enclose blocks of code. It relies entirely on whitespace indentation (usually 4 spaces) to show that a line of code is nested inside a function, loop, or conditional statement.
.
.