Lecture notes and homework assignments from the Python Basics course at AIT TR GmbH.
The course covers the fundamentals of Python programming — from variables and data types to loops and lists.
ait-python-cohort60/
├── lesson_01/ # Intro to Python
├── lesson_02/ # Variables and data types
├── lesson_03/ # Practical tasks on variables
├── lesson_04/ # Data type str. Input and output
├── lesson_05/ # Functions
├── lesson_06/ # Boolean. Logical data type and basics of logic
├── lesson_07/ # Practical tasks on logical operations
├── lesson_08/ # Conditional operators
├── lesson_09/ # while Loop
└── lesson_10/ # Lists. For loop
| Technology | Details |
|---|---|
| Python 3 | Core language |
| PyCharm / VS Code | IDE (.idea/ config included) |
| Instructor | Lessons |
|---|---|
| Sergey Bugaenko | Lessons 01–10 (full course) |
lesson_01/
First steps in Python. Setting up the environment and understanding what programming is.
- What is Python and why it's popular
- Installing Python and PyCharm
- First program:
print("Hello, World!") - Comments:
#single-line,''' '''multi-line - Python syntax basics: indentation, case sensitivity
lesson_02/
Understanding how data is stored and typed in Python.
- Variables: naming rules, assignment
= - Basic data types:
int,float,str,bool type()— checking the type of a value- Dynamic typing in Python
- Constants (convention:
UPPER_CASE)
lesson_03/
Practice session — applying knowledge of variables and types.
- Arithmetic operations:
+,-,*,/,//,%,** - Integer division and remainder
- Solving practical math tasks with variables
- Swapping variable values
lesson_04/
Working with text data and interacting with the user.
- String creation: single
', double", triple'''quotes - String operations: concatenation
+, repetition* - String methods:
.upper(),.lower(),.strip(),.replace(),.split(),.find(),.count() - String indexing and slicing:
s[0],s[1:5],s[::-1] len()— string length- f-strings:
f"Hello, {name}!" input()— reading user inputprint()— formatted output withsep,end
lesson_05/
Writing reusable blocks of code with functions.
- Defining functions:
def function_name(): - Parameters and arguments
- Default parameter values
return— returning a value- Calling functions
- Scope: local vs global variables
globalkeyword
lesson_06/
Understanding truth values and logical reasoning in code.
booltype:True,False- Comparison operators:
==,!=,>,<,>=,<= - Logical operators:
and,or,not - Truthy and falsy values in Python
bool()— explicit conversion
lesson_07/
Practice session — applying boolean logic to real tasks.
- Combining multiple conditions with
and/or - Operator precedence in logical expressions
- Checking ranges:
10 <= x <= 100 - Practical problem solving with logical operators
lesson_08/
Branching program flow based on conditions.
if/elif/elsestatements- Nested conditions
- One-line ternary:
x if condition else y match/case(Python 3.10+) — pattern matching- Practical exercises: grade calculator, number classifier, etc.
lesson_09/
Repeating actions while a condition is true.
while condition:— basic syntaxbreak— exiting the loop earlycontinue— skipping to the next iterationwhile True:— infinite loop with break- Input validation loops
- Counting and accumulating with
while
lesson_10/
Storing multiple values and iterating over sequences.
- Lists:
[], creating, accessing elements by index - List methods:
.append(),.insert(),.remove(),.pop(),.sort(),.reverse(),.count(),.index() - Slicing lists:
lst[1:4] for item in list:— iterating over a listrange(start, stop, step)— generating number sequencesfor+range()— classic counter loop- Nested loops
- List comprehension:
[x * 2 for x in lst]
# Clone the repository
git clone https://github.com/AOgit/ait-python-cohort60.git
cd ait-python-cohort60
# Run any lesson file
python lesson_01/main.py
# Or open the project in PyCharm
# (.idea/ configuration is already included)Requirements: Python 3.10+
AIT TR GmbH — IT courses for career changers
🌐 https://ait-tr.de