🌍 Python Programming · subject
Python Programming Python Fundamentals Syllabus
Every chapter and topic of Python Fundamentals examined in Python Programming — 5 chapters, 22 topics, plus 50 flashcards written against it.
Python Fundamentals syllabus — full chapter and topic list
Expand any chapter to see its topics and sub-topics. This is the whole examinable outline for Python Fundamentals in Python Programming, not a summary of it.
-
Introduction to Python
4 topics- What Python Is and Where It Is Used
- Installing Python and Setting Up the Environment
- Running Your First Program
- Comments and Code Readability
-
Variables, Data Types and Literals
5 topics- Variables and Naming Rules
- Numeric Types
- Strings and Booleans
- Type Conversion and Casting
- Keywords and Reserved Words
-
Operators and Expressions
5 topics- Arithmetic Operators
- Comparison and Logical Operators
- Assignment and Augmented Assignment
- Bitwise Operators
- Operator Precedence and Associativity
-
Input, Output and Formatting
3 topics- Reading User Input with input()
- String Formatting
- Escape Sequences
-
Control Flow
5 topics- Conditional Statements
- while Loops
- for Loops and range()
- break, continue and else Clauses
- The match Statement
Python Fundamentals flashcards for Python Programming
20 of 50 cards from the Python Fundamentals deck — real questions with worked answers.
What is Python, and what programming paradigms does it support?
Python is a high-level, interpreted, general-purpose programming language known for readable syntax and dynamic typing. It supports multiple paradigms: procedural, object-oriented, and functional programming.
Name at least four fields or use cases where Python is commonly applied.
Web development, data science and machine learning, automation/scripting, scientific computing, and back-end/server development. (Also game development, testing, and DevOps.)
What does it mean that Python is an 'interpreted' language?
Python code is executed line by line by an interpreter at runtime rather than being compiled to machine code ahead of time, which makes it portable and easy to test but generally slower than compiled languages.
Which command-line tool is used to install third-party Python packages, and from what repository?
The 'pip' package manager installs packages from PyPI (the Python Package Index). Example: pip install requests.
How can you check the installed Python version from a terminal?
Run python --version or python -V (on some systems python3 --version). It prints the currently active Python version, e.g., Python 3.12.0.
What is a virtual environment in Python, and why is it useful?
A virtual environment is an isolated directory containing its own Python interpreter and packages, so each project can have independent dependencies. Created with python -m venv env_name; avoids version conflicts between projects.
What is the canonical first program in Python, and what function displays text?
The classic first program prints "Hello, World!" using the built-in print() function: print("Hello, World!")
How do you run a Python script named script.py from the command line?
Type python script.py (or python3 script.py) in the terminal from the directory containing the file.
What is the difference between running Python interactively (REPL) and running a script?
The REPL (Read-Eval-Print Loop) executes statements immediately one at a time and shows results interactively; a script file runs all its code in sequence when invoked, without echoing expression results unless printed.
How do you write a single-line comment in Python?
Begin the line with the hash symbol #. Everything after # on that line is ignored by the interpreter. Example: # this is a comment
Does Python have a dedicated multi-line comment syntax? How are multi-line comments typically written?
Python has no dedicated multi-line comment syntax. Programmers either use multiple # lines, or a triple-quoted string (''' ... ''') which acts as an unassigned string literal, though technically it is a string, not a true comment.
What is a docstring, and where is it placed?
A docstring is a string literal (usually triple-quoted) placed as the first statement inside a module, function, class, or method to document it. It is accessible via the object's __doc__ attribute.
Why is code readability emphasized in Python, and what document defines its style guidelines?
Readability is core to Python's design philosophy ("readability counts"). The style guide is PEP 8, which recommends conventions like 4-space indentation, meaningful names, and line-length limits.
What is a variable in Python, and how is one created?
A variable is a named reference to a value stored in memory. It is created by assignment using =, e.g., x = 5. No explicit type declaration is needed because Python is dynamically typed.
List the rules for valid Python identifier (variable) names.
Names may contain letters, digits, and underscores; must not start with a digit; are case-sensitive; cannot be a reserved keyword; and cannot contain spaces or symbols like -, +, or @.
Which of these are valid variable names: 2cool, my_var, total-price, _hidden?
Valid: my_var and _hidden. Invalid: 2cool (starts with a digit) and total-price (contains a hyphen).
What naming convention (case style) does PEP 8 recommend for variable and function names?
snake_case: lowercase words separated by underscores, e.g., total_count. (Classes use CapWords/PascalCase; constants use UPPER_CASE.)
Name the three built-in numeric types in Python and give an example of each.
int (integers, e.g., 42), float (floating-point numbers, e.g., 3.14), and complex (complex numbers, e.g., 2 + 3j).
What is the result and type of the expression $7 / 2$ in Python 3?
The result is 3.5, and its type is float. The / operator always performs true division and returns a float in Python 3.
How do you get integer (floor) division and the remainder of $17$ divided by $5$?
Floor division uses //: $17 // 5 = 3$. The remainder uses the modulo operator %: $17 \% 5 = 2$.
Planning Python Fundamentals for Python Programming
Python Fundamentals is about 18% of the Python Programming syllabus by topic count — 22 of 121 topics, spread over 5 chapters. At roughly 45 minutes per topic plus 12 minutes per sub-topic, a first pass runs to about 15 hours.
The heaviest chapters are Variables, Data Types and Literals (5 topics), Operators and Expressions (5 topics), Control Flow (5 topics) . Front-load those while your energy is high; the short chapters are better revision filler later.
Work top-down: read the chapter, then tick topics off individually rather than marking the whole chapter done. Sub-topics are where silent gaps hide.
Python Fundamentals (Python Programming) FAQ
What is in the Python Programming Python Fundamentals syllabus?
Python Fundamentals is split into 5 chapters — Introduction to Python, Variables, Data Types and Literals, Operators and Expressions, Input, Output and Formatting and Control Flow, containing 22 topics and 0 sub-topics in total.
How is Python Fundamentals structured in the Python Programming syllabus?
5 chapters. Python Fundamentals accounts for about 18% of the topics in the whole Python Programming syllabus (22 of 121).
How long should I spend on Python Fundamentals for Python Programming?
Budget around 15 hours for a first pass through Python Fundamentals — about 45 minutes per topic plus 12 minutes per sub-topic across its 22 topics. Add revision cycles on top.
Are there flashcards for Python Programming Python Fundamentals?
Yes — a 50-card Python Fundamentals deck. Sample cards are printed on this page, and the full deck is free in the Examius app with spaced repetition scheduling.