Data Structures & Python Syntax Rules

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/3

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 5:47 PM on 5/24/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

4 Terms

1
New cards

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

2
New cards

question

What are the strict rules regarding Python keywords, variable names, and code blocks?

3
New cards

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.

4
New cards

.

.