Three months is enough to learn the basics of one programming language and build a few small projects, if you practise almost every day. It is not enough to become a job-ready developer, and any plan that promises that is not being honest with you. What 12 weeks can do is take you from zero to someone who writes working code without copying it, which is the hardest step.
This page gives you a week-by-week plan, the daily routine to follow, checkpoints to test yourself and what comes after. For the bigger picture of choosing a language and a direction without a deadline, see our learn to code roadmap for beginners. This page is the time-boxed version.
What 3 months can and cannot do
| After 12 weeks you can usually | After 12 weeks you usually cannot yet |
|---|---|
| Write programs with conditions, loops and functions | Clear product-company coding rounds |
| Solve easy problems on your own | Build a full web app with login and a database |
| Read and fix simple errors | Explain advanced topics like multithreading |
| Use Git and push code to GitHub | Call yourself a full stack developer |
| Finish one small project end to end | Expect interview calls from coding basics alone |
Keep this table in mind. Expecting too much in 12 weeks is the most common reason beginners quit in week 6.
Before you start: three decisions
- One language. Python is the easiest start for most people. Java works if you want Java developer roles. This plan uses Python examples; the same weeks apply to Java. If you are unsure, read best programming language to learn, decide in one day and stop comparing.
- Fixed daily time. About 2 to 3 hours, five or six days a week. Put it in your calendar like a class.
- One main resource. One course, book or tutorial series as your spine. Use other resources only when you are stuck on a specific topic. Our list of best free websites to learn coding can help you pick one.
The 12-week coding plan
Month 1: Fundamentals
| Week | Topics | Practice target |
|---|---|---|
| 1 | Setup, first program, variables and data types, input and output, arithmetic | 15 tiny programs: area, interest, unit conversion |
| 2 | Conditions: if, elif, else; comparison and logical operators | Grade calculator, even or odd, largest of three |
| 3 | Loops: for, while, break, continue | Multiplication table, sum of digits, simple patterns |
| 4 | Functions, parameters, return values; lists | Rewrite weeks 2 and 3 programs as functions |
Month 1 checkpoint. Can you write this from scratch, without looking anything up, and predict its output?
marks = {"Asha": 78, "Ravi": 45, "Meena": 91, "Karan": 33}
def grade(score):
if score >= 75:
return "Distinction"
elif score >= 40:
return "Pass"
else:
return "Fail"
for name, score in marks.items():
print(f"{name}: {score} -> {grade(score)}")
passed = [name for name, score in marks.items() if score >= 40]
print("Passed:", len(passed), "of", len(marks))
Output:
Asha: 78 -> Distinction
Ravi: 45 -> Pass
Meena: 91 -> Distinction
Karan: 33 -> Fail
Passed: 3 of 4
The dictionary and the list comprehension on the last lines are week 5 topics. If you can read the rest comfortably, month 1 worked. If not, repeat week 4 before moving on.
Month 2: Working with data and problems
| Week | Topics | Practice target |
|---|---|---|
| 5 | Strings and string methods; dictionaries; list comprehensions | Word counter, vowel counter, phone book |
| 6 | Reading and writing files; handling errors with try and except | Save and load a to-do list from a text file |
| 7 | Problem solving: break a problem into steps, dry run, what is an algorithm | 10 easy problems from our Problems section |
| 8 | Git basics: init, add, commit, push; a GitHub account | Push every program from weeks 1 to 7 to GitHub |
Good week 7 problems to start with: check whether a number is prime, check whether a string is a palindrome, find the second largest element in an array and count the frequency of each character in a string.
Month 2 checkpoint. Solve three easy problems you have not seen before, in under 30 minutes each, without looking at a solution. Then explain one of them aloud as if to a friend.
Month 3: Build something real
| Week | Topics | Practice target |
|---|---|---|
| 9 | Plan a project: features, inputs, outputs; basic classes and objects | Write a feature list for your project |
| 10 | Build the project in small steps; commit after each working step | A working core version |
| 11 | A taste of the next stage: what is SQL or how websites work | 10 SQL queries, or one static HTML page |
| 12 | Finish, clean up and document the project; review all weak topics | A GitHub README and a short demo |
Good first projects are an expense tracker that saves to a CSV file, a quiz app, or a contact book. Our mini project ideas for beginners in Python has ten with sample code. Our guide on how to build a project step by step walks you through the planning.
A daily routine that works
| Block | Time | What to do |
|---|---|---|
| Revise | 15 min | Re-type one program from yesterday without looking |
| Learn | 45 min | One new topic from your main resource |
| Practise | 60 to 90 min | Write programs on that topic yourself |
| Log | 10 min | Write down what confused you and what you fixed |
The practice block matters most. If you only have one hour on a day, skip the new topic and practise.
Pro tip: Type every example yourself instead of copy-pasting. Your fingers and your errors teach you more than reading does.
Signs you are learning, not just watching
- You can write a program from a blank file, not only edit a tutorial's code
- You get errors and fix most of them by reading the message
- Your GitHub shows commits on most days
- You can explain why your code works, line by line
If you have watched hours of videos but cannot write a loop from memory, you are in tutorial hell. Our guide on how to escape tutorial hell shows how to break out.
Common mistakes in a 3-month plan
- Switching languages in week 3 because someone said another one is better. Every switch resets your progress.
- Skipping practice to "finish the course". Finishing videos is not the goal; writing code is.
- Starting a framework too early. Django, React or Spring Boot in month 1 means learning two hard things at once.
- No checkpoints. Without testing yourself, you will not notice gaps until an interview exposes them.
- Comparing with others online. People who post "learned to code in 30 days" often had prior experience.
What to do after 3 months
The 12 weeks give you a foundation. The next stage depends on your goal:
| Goal | Next 3 to 6 months |
|---|---|
| Software developer jobs | DSA, one framework, two bigger projects. See the software developer roadmap for beginners |
| Placements in final year | DSA from scratch with our DSA study plan, plus aptitude |
| Web development | HTML, CSS, JavaScript, then React. See how to become a web developer |
| Data analyst roles | SQL, Excel, Python for data, a BI tool. See the data analyst roadmap |
Final word
Learning how to code in 3 months is realistic if you treat it as the first stage, not the finish line. One language, two to three hours a day, weekly checkpoints and one finished project will put you ahead of most people who start. Keep the same routine for the next stage and the job-ready skills will follow.

