Sopanly

Python basics in 30 days

by Sopanly Team

Free

30 days · No ratings yet

Scan with your Android phone to get it in the Sopanly app.

Or continue on the web

Learn Python from zero by writing small programs every day: variables, loops, functions, lists, dictionaries, files and a final mini project.

Sopanly Team
Day-by-day learning plans
30 daysDuration
40 minEach day
BeginnerLevel
No ratings yetRating

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

Day 1: Install Python and say hello

Install Python and run your first program from a file.

Day 9: For loops and range

Loop over a range of numbers and over text.

Day 16: Looping over lists

Process every item in a list.

Everything in it

82 tasks over 30 days.

  1. Day 1: Install Python and say hello
  2. Day 2: Variables and numbers 🔒
  3. Day 3: Working with text 🔒
  4. Day 4: Taking input 🔒
  5. Day 5: Making decisions with if 🔒
  6. Day 6: Combining conditions 🔒
  7. Day 7: Review: week 1 🔒
  8. Day 8: While loops 🔒
  9. Day 9: For loops and range
  10. Day 10: Loop control and nested loops 🔒
  11. Day 11: Your first functions 🔒
  12. Day 12: Return values 🔒
  13. Day 13: Scope and small helpers 🔒
  14. Day 14: Review: week 2 🔒
  15. Day 15: Lists 🔒
  16. Day 16: Looping over lists
  17. Day 17: Tuples and sets 🔒
  18. Day 18: Dictionaries 🔒
  19. Day 19: Dictionaries with lists 🔒
  20. Day 20: Reading and writing files 🔒
  21. Day 21: Review: week 3 🔒
  22. Day 22: Reading errors 🔒
  23. Day 23: Handling errors with try/except 🔒
  24. Day 24: Modules and the standard library 🔒
  25. Day 25: Working with CSV files 🔒
  26. Day 26: Mini project: plan 🔒
  27. Day 27: Mini project: add and list 🔒
  28. Day 28: Mini project: save, load and totals 🔒
  29. Day 29: Mini project: polish 🔒
  30. Day 30: Wrap up and what's next 🔒

Reviews

No ratings yet · 0 ratings

5 stars0%4 stars0%3 stars0%2 stars0%1 stars0%

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

Free
Get it free