Python basics in 30 days
by Sopanly Team
30 days · No ratings yet
Scan with your Android phone to get it in the Sopanly app.
Or continue on the webLearn Python from zero by writing small programs every day: variables, loops, functions, lists, dictionaries, files and a final mini project.
About this roadmap
A gentle, hands-on start to programming with Python. Every day is about 40 minutes: a short explanation, code you type and run yourself, and one small program to write on your own. Week 1 covers running Python, variables, numbers, text, input and if/else. Week 2 adds loops and functions. Week 3 is about lists, dictionaries and working with files. Week 4 covers errors, modules and a mini project you build from start to finish: a command-line expense tracker that saves to a file (amounts in ₹, categories like groceries or travel). There are review days at the end of each week. All tools are free: Python 3, and either VS Code or the built-in IDLE editor. No previous coding needed.
What you'll achieve
Write and run small Python programs on your own: take input, make decisions, repeat work with loops, organise code into functions, store data in lists and dictionaries, and read and write files.
Who it's for
Complete beginners: school and college students, working people curious about coding, and anyone who wants a first programming language before data, web or automation.
Prerequisites
A laptop or desktop (Windows, macOS or Linux) where you can install software, and basic typing. No maths beyond arithmetic and no prior coding.
What you'll learn
Variables and types, strings and f-strings, input and output, if/elif/else, while and for loops, range, functions with parameters and return values, lists, tuples, dictionaries, sets, reading and writing text and CSV files, try/except, importing modules, and splitting a program into pieces.
How it works
Type every example yourself rather than copying it, change it to see what breaks, then write one small program of your own. Each week ends with a review day of exercises from memory.
What you'll need
Python 3 from python.org, VS Code or IDLE, a folder for your daily programs, and the official Python tutorial at docs.python.org for extra reading.
Expected outcomes
Around 40 small programs you wrote yourself (calculators, quizzes, number games, word counters) and a working expense tracker mini project.
After you finish
You'll be ready for a next step such as data analysis with pandas, web development with Flask or Django, automation scripts, or a structured course in algorithms and problem solving.
Questions and answers
Do I need to be good at maths?
No. Basic arithmetic is enough. The programs in this roadmap are about logic and text, not advanced maths.
Can I do this on a phone?
You can read the lessons on a phone, but you'll need a laptop or desktop to install Python and write the programs. Online editors work as a backup if you can't install anything.
What if a program doesn't work?
That's normal and part of learning. Read the error message from the bottom up, check spelling and indentation, and print values to see what's happening. Day 22 is about reading errors.
Is 40 minutes a day really enough?
For basics, steady daily practice works better than long weekend sessions. Some days you may want a few extra minutes for your own program, and that's fine.
What should I do after 30 days?
Pick one direction (data, web or automation) and build a few small projects in it. The last day helps you choose.
Sample days
Install Python and run your first program from a file.
- What a program is and how Python runs it
- Install Python 3 and VS Code (or use IDLE)
- Write hello.py
Loop over a range of numbers and over text.
- for with range(start, stop, step) and looping over a string
- Multiplication table and counting vowels
- Write pattern.py
Process every item in a list.
- for item in list, enumerate and building a new list
- Filter and transform
- Write todo.py
Everything in it
82 tasks over 30 days.
- Day 1: Install Python and say hello
- Day 2: Variables and numbers 🔒
- Day 3: Working with text 🔒
- Day 4: Taking input 🔒
- Day 5: Making decisions with if 🔒
- Day 6: Combining conditions 🔒
- Day 7: Review: week 1 🔒
- Day 8: While loops 🔒
- Day 9: For loops and range
- Day 10: Loop control and nested loops 🔒
- Day 11: Your first functions 🔒
- Day 12: Return values 🔒
- Day 13: Scope and small helpers 🔒
- Day 14: Review: week 2 🔒
- Day 15: Lists 🔒
- Day 16: Looping over lists
- Day 17: Tuples and sets 🔒
- Day 18: Dictionaries 🔒
- Day 19: Dictionaries with lists 🔒
- Day 20: Reading and writing files 🔒
- Day 21: Review: week 3 🔒
- Day 22: Reading errors 🔒
- Day 23: Handling errors with try/except 🔒
- Day 24: Modules and the standard library 🔒
- Day 25: Working with CSV files 🔒
- Day 26: Mini project: plan 🔒
- Day 27: Mini project: add and list 🔒
- Day 28: Mini project: save, load and totals 🔒
- Day 29: Mini project: polish 🔒
- Day 30: Wrap up and what's next 🔒
Reviews
No ratings yet · 0 ratings
Good to know
Includes future updates: when the creator publishes a new version, your roadmap gets it for free.
Results depend on your effort; no roadmap can guarantee a job, income or exam result. Report this roadmap