// resources
Resources
All
|
Cheatsheet
Code Example
Exercise
Template
Other
Achievement
|
Basics
Control Flow
Functions
Data Structures
Modules & Packages
Projects
Object-oriented programming
|
↑ oldest first
↓ newest first
// Code Example
hello.py
Your first Python script. One instruction. One result. That's how it starts.
// Code Example
variables.py
See how labels work in practice. Change a value — watch everything update.
// Code Example
strings_basics.py
Text is data. See how strings work in practice — quotes, concatenation, and why "25" is not the same as 25.
// Code Example
strings_indexing.py
Every character has a position. See how indexes work — from zero to negative.
// Code Example
strings_slicing.py
Take exactly the piece you need. All slicing variations in one file.
// Code Example
strings_methods_1.py
Your string's basic toolkit in action. len, upper, lower, strip, replace — with examples and chaining.
// Code Example
strings_methods_2.py
Search, split, and rebuild. See how in, find, count, startswith, split, and join work in practice.
// Code Example
data_types.py
Not all values are the same. See the four basic types in action — str, int, float, bool — and why type() is your best f…
// Code Example
print_formatting.py
Your output, your rules. sep, end, and f-strings — everything you need to print clean, structured results.
// Code Example
input_basics.py
Your program is listening. See how input() works — from basic text to numbers and a real age calculator.
// Exercise
username_generator.py
Your first mini project. Build a username generator using input, string methods, and slicing — three parts, increasing …
// Other
string_mistakes.py
7 mistakes almost every beginner makes with strings. Wrong way, error, right way — all in one file.
// Cheatsheet
Strings — The Full Picture
Everything you've learned about strings — in one place. Indexing, slicing, methods, formatting, input, and common mista…
// Achievement
strings_complete_medal.stl
You finished the Strings chapter. Download, print, and keep it. You earned it.
// Code Example
numbers_basics.py
int or float — Python decides. See how numbers work, how types are assigned, and why "25" is not 25.