Python for beginners: what to learn in the first 30 days

By SamkhyaAcademy Team · · 6 min read

python for beginners

A week-by-week 30-day Python plan for beginners with daily goals, practice tasks, a choice of directions in week 4, mini project ideas, and the mistakes to avoid. Includes current data on Python demand.

Python is the language most freshers are told to learn first, and the advice holds up. It reads almost like English, it is used in web development, testing, data, automation and AI, and you can write something useful within a day. But "learn Python" is vague, and many beginners drift for months. This guide gives you a clear 30-day plan with daily goals, practice tasks and a mini project at the end.

Why Python, and some facts worth knowing

Python was created by Guido van Rossum, a Dutch programmer, who started it during a Christmas break in 1989 and released the first version on 20 February 1991. It is named after the British comedy series Monty Python's Flying Circus, not the snake. It was designed to be easy to read, and that is still its biggest strength for beginners.

It is also in demand. A PrepNPlaced study of 18,752 tech postings on LinkedIn and Naukri, from 26 September to 26 October 2026, found Python in about 28.2 percent of all postings, the most common skill in the study, ahead of SQL at 21.6 percent. In data engineering postings, SQL and Python were both common, at 45.2 and 42.7 percent. This is one dataset, but it matches what job descriptions show: Python plus SQL is a strong beginner combination.

How to use this plan

Spend 1.5 to 2 hours a day: about 40 minutes learning, the rest writing code. Type every example yourself instead of pasting it. When you get stuck, read the error message first; it often tells you the line and the problem. Keep all your code in a Git repository so you can show your progress later. See Git and GitHub for beginners.

Week 1: The basics (days 1 to 7)

  • Day 1: Install Python and VS Code. Run your first print("Hello"). Learn how to run a file.
  • Day 2: Variables and data types: numbers, strings, booleans. Practice: a program that asks your name and age and prints a sentence.
  • Day 3: Operators and input. Practice: a simple calculator for two numbers.
  • Day 4: Conditions: if, elif, else. Practice: grade calculator from marks.
  • Day 5: Loops: for and while. Practice: print multiplication tables; sum of numbers 1 to 100.
  • Day 6: Practice day: FizzBuzz, even or odd, count vowels in a word.
  • Day 7: Review and a mini challenge: a number guessing game.

Week 2: Data and functions (days 8 to 14)

  • Day 8: Lists: add, remove, slice, loop. Practice: find the largest number without using max().
  • Day 9: Tuples and sets. Practice: remove duplicates from a list.
  • Day 10: Dictionaries. Practice: a word counter for a sentence.
  • Day 11: Functions: parameters, return values. Practice: rewrite earlier programs as functions.
  • Day 12: Strings in depth: methods, formatting, f-strings. Practice: check for a palindrome.
  • Day 13: Error handling with try and except. Practice: make your calculator safe against bad input.
  • Day 14: Review and a mini project: a contact book stored in a dictionary.

Week 3: Real-world skills (days 15 to 21)

  • Day 15: Reading and writing files. Practice: save your contact book to a text file.
  • Day 16: JSON and CSV files. Practice: read a CSV of marks and compute averages.
  • Day 17: Modules and packages; pip and virtual environments.
  • Day 18: Object-oriented basics: classes and objects. Practice: a Student class.
  • Day 19: Calling an API with the requests library. Practice: fetch data from a free practice API. Our REST API guide explains the ideas.
  • Day 20: Comprehensions, lambda and sorting. Practice: sort a list of dictionaries by a key.
  • Day 21: Review week and fix old code. Add comments and clean names.

Week 4: Choose a direction and build (days 22 to 30)

Pick one path for the last nine days, and finish a project.

  • For testing: learn pytest, write 15 tests for your earlier functions, then try Selenium. See Selenium for beginners.
  • For data: learn basic SQL with SQLite, then load a CSV and answer five questions about it.
  • For web and automation: build a small script that reads a file, fetches data from an API and saves a report.
  • For interviews: solve ten beginner problems on arrays and strings; see our arrays and lists guide.

Mini project ideas for days 27 to 30

  1. Expense tracker: add, view and summarise expenses by category; save to a file.
  2. Quiz app: questions from a JSON file, a score at the end.
  3. Weather or currency checker: fetch live data from a free API.
  4. Student marks analyser: read a CSV and print the topper and the class average.

Whichever you choose, include a README, push it to GitHub and write three lines about what you learned. Employers increasingly judge freshers by proof of work; a 2026 TeamLease EdTech report that surveyed 1,051 employers says projects, portfolios and internships are becoming central.

Mistakes to avoid

  • Only watching videos. You learn to code by typing code and breaking things.
  • Jumping between courses. Pick one resource and finish it.
  • Copying AI answers without understanding. AI tools are helpful for explaining errors, but write the solution yourself first. See how to use AI tools to learn faster.
  • Skipping practice days. The plan has them on purpose.
  • Not saving your work. Commit to Git daily.

What after 30 days?

Thirty days gives you a base, not mastery. Next, deepen one area: testing automation, web development, data analysis or AI. Keep practising problem-solving, learn SQL alongside Python, and build one bigger project over the next month. If you fall behind the plan, do not quit; repeat the week you struggled with. Steady practice beats speed.

Ready for the next step?

After your first 30 days, build bigger projects with mentor guidance. Build real projects in our Project Development with AI program. If you would like guidance from people who work in the industry, join our free career guidance workshop or request a free career discovery session. We will look at your background and help you plan what to learn and build next.

Need career guidance from industry experts?

Join our free workshop or request a free career discovery session.

Keep reading