This repo is a 20‑day Python roadmap. Each day has one or more example scripts, kept very small so you can read and run them quickly.
Below is a short guide you can share on LinkedIn or anywhere else.
- Days 1–4: Core syntax, variables, operators, strings, numbers
- Days 5–8: Lists, tuples, sets, dictionaries
- Days 9–11: Conditionals, loops, functions, scope
- Days 12–16: Modules, decorators, useful built‑ins, errors, regex, generators
- Days 17–20: OOP, virtual environments, statistics/NumPy, and a small login project
Paths are relative to the project root.
Under each day there is a short note on what you will mainly practice.
-
Day 1 – Printing & Comments
- Folder:
Day 1 - What you’ll practice:
print(), basic output, escape characters, single‑line and multi‑line comments.
- Folder:
-
Day 2 – Variables & Data Types
- Folder:
Day 2 - What you’ll practice: variables, naming,
input(), type casting,int,float,str,booland basic containers.
- Folder:
-
Day 3 – Operators
- Folder:
Day 3 - What you’ll practice: arithmetic, assignment operators, comparison, logical operators.
- Folder:
-
Day 4 – Strings & Numbers
- Folder:
Day 4 - What you’ll practice: string basics, common string methods and slicing, plus a first look at numbers and booleans.
- Folder:
-
Day 5 – Lists
- Folder:
Day 5 - What you’ll practice: creating lists, indexing, slicing, inserting/removing, joining lists, counting, sorting, copying.
- Folder:
-
Day 6 – Tuples
- Folder:
Day 6 - What you’ll practice: tuple basics, accessing items, slicing, converting to list, checking membership, joining and deleting.
- Folder:
-
Day 7 – Sets
- Folder:
Day 7 - What you’ll practice: set creation, adding/removing items, union/intersection/difference and other set operations.
- Folder:
-
Day 8 – Dictionaries
- Folder:
Day 8 - What you’ll practice: key/value pairs, accessing and updating, common dictionary methods.
- Folder:
-
Day 9 – Conditionals & Loops
- Folder:
Day 9 - What you’ll practice:
if/elif/else, nested conditions,whileloops,forloops and basic patterns likebreak/continue.
- Folder:
-
Day 10 – Functions
- Folder:
Day 10 - What you’ll practice: defining functions, parameters and return values,
*args,**kwargs, passing functions around, lambda expressions.
- Folder:
-
Day 11 – Scope & Closures
- Folder:
Day 11 - What you’ll practice: local vs global variables, nested functions and how closures capture variables.
- Folder:
-
Day 12 – Modules
- Folder:
Day 12 - What you’ll practice: creating your own modules, importing them, using a few handy standard‑library modules.
- Folder:
-
Day 13 – Higher‑Order Functions & Decorators
- Folder:
Day 13 - What you’ll practice: functions that take/return functions, decorators,
map,filter,reduce, list comprehensions.
- Folder:
-
Day 14 – date/time, enumerate, zip
- Folder:
Day 14 - What you’ll practice: working with dates and times, looping with indexes using
enumerate, combining sequences withzip.
- Folder:
-
Day 15 – Errors & Exceptions
- Folder:
Day 15 - What you’ll practice: common error types,
try/except/else/finally, raising your own exceptions and simple validation.
- Folder:
-
Day 16 – RegEx & Generators
- Folder:
Day 16 - What you’ll practice: using
re.match,re.search,re.findall,re.split,re.sub, plus writing and using generator functions withyield.
- Folder:
-
Day 17 – Object‑Oriented Programming
- Folder:
Day 17 - What you’ll practice: classes and objects, instance vs class variables, methods, encapsulation, inheritance,
super, polymorphism and magic methods.
- Folder:
-
Day 18 – Virtual Environments
- Folder:
Day 18 - What you’ll practice: creating and activating virtual environments, installing packages for a project.
- Folder:
-
Day 19 – Statistics & NumPy
- Folder:
Day 19 - What you’ll practice: basic statistics from the standard library and first steps with NumPy arrays and operations.
- Folder:
-
Day 20 – Mini Login Project (JSON + API + Packages)
- Folder:
Day 20 - What you’ll practice: a tiny login flow using JSON as storage, a third‑party HTTP client (
requests), and a simple package structure.
- Folder:
- Open a day folder, pick any script, and run it with:
python "Day X/some_file.py"- Use the file names as a hint for the topic you want to revise.
- Day 20 gives you a small but realistic project that ties together:
- JSON
- a third‑party library (
requests) - and a simple package layout.