How to Learn Coding From Scratch in India: A 12-Week Path
Quick answer
A practical starter path for Indian beginners: one language, a first program, a 12-week plan, a four-rung project ladder and a free way to check progress.
To learn coding from scratch in India, pick one beginner-friendly language, practise a little every day, and build tiny projects that each reuse the last one. Python is a sensible first choice, though that is our advice, not an official ranking. No official body sets a learning timetable, so measure progress by what you can build, not by months.
Key takeaways
- Start with one language and finish small programs before you collect courses. Python or JavaScript are common first picks.
- Use a project ladder: calculator, terminal to-do list, a marks table read from a CSV file, then a web page that shows the same table.
- YouTube is popular with learners (Stack Overflow's 2025 survey, global), but watching is not practising. Write code after every video.
- No source we checked sets an official number of hours or months to become job-ready, so treat any such promise with caution.
On this page:
- Which language should you start with?
- What is the first program to run?
- What does a 12-week starter path look like?
- Which small projects should you build?
- Where should you learn from?
- How do you know you are progressing?
- Frequently asked questions
| Your situation | Suggested first language | First project |
|---|---|---|
| Non-IT graduate, wants a gentle start | Python | Marks calculator |
| Wants to see results in a browser | JavaScript with HTML and CSS | Personal profile page |
| College syllabus uses Java or C | That language | Exercises from your lab manual |
| Interested in data work later | Python | Read a CSV and print summary numbers |
The table is our own suggestion, based on common practice. It is not sourced from a standards body. If your course or an employer already names a language, learn that one.
Which language should you start with?
Choose one and stay with it for at least the first eight weeks. We have not found an authoritative source that crowns a single best first language, so the choice is yours. Python reads close to plain English, which is why many beginners pick it. JavaScript gives instant visual results in a browser.
The costly mistake is switching every week because a video says another language is better. Programming ideas such as variables, loops and functions carry across languages, so depth in one beats a shallow start in three. When you are ready for more structure, our programming for beginners guide and the answer to can anyone really learn to code are useful companions.
What is the first program to run?
A two-line program that asks for your name. Install Python, save the lines below as hello.py and run python hello.py in a terminal. On some systems the command is python3.
name = input("Your name: ")
print("Hello,", name)Type Asha when prompted and it prints Hello, Asha. Small as it is, this program has input, a variable and output, the three ideas behind most programs. Change the greeting, add a second question, and run it again. If you prefer Java, see setting up the Java environment for the install steps.
What does a 12-week starter path look like?
Treat this as an example plan, not a standard. It is illustrative and unsourced, and you should stretch or compress it to fit your life. A steady 45 to 60 minutes a day is an illustrative target, not a requirement.
- Weeks 1 and 2: variables, data types, input and output, and if-else.
- Weeks 3 and 4: loops and functions.
- Weeks 5 and 6: lists and dictionaries.
- Weeks 7 and 8: reading and writing files, and a small text-based game.
- Weeks 9 to 12: a small web page or a data script that you finish and explain.
If you want a tighter Python-only plan, we have a separate 30-day Python plan that covers the basics in a month.
Which small projects should you build?
Build a ladder where each step reuses the previous step's code: a calculator, then a to-do list in the terminal, then a student marks table read from a CSV file, then a small web page that shows the same table. Four rungs are enough to fill a portfolio page.
Here is the third rung in Python. Save this data as marks.csv:
name,marks
Asha,82
Ravi,74
Meera,91Then save the script below as marks.py in the same folder and run it. The names and marks are made up, and the pass mark of 40 is an illustrative choice.
import csv
with open("marks.csv", newline="") as f:
rows = list(csv.DictReader(f))
marks = [int(r["marks"]) for r in rows]
print("Students:", len(marks))
print("Average:", round(sum(marks) / len(marks), 1))
for r in rows:
status = "pass" if int(r["marks"]) >= 40 else "fail"
print(r["name"], r["marks"], status)It prints Students: 3, Average: 82.3 and then each name with its marks and a pass line. For rung four, show the same data in HTML, and use our list of Python projects for beginners when you need new ideas.
Where should you learn from?
Use a mix of one structured source and daily practice. Most learners lean on video. The Stack Overflow 2025 Developer Survey, which received over 49,000 responses from 177 countries, says respondents learning to code use YouTube for community more than professional developers do, 70% against 60%. Those are global results, not India-only numbers.
The takeaway is that video is a common starting point, not that it is enough. Pause often and type the code yourself. If you want a government-backed platform to browse, SWAYAM is run as an initiative of the Ministry of Education, Government of India, according to its own home page. We have not verified fees or certificates for any SWAYAM course, so check each course page before you enrol.
Be careful with courses that promise jobs or quote placement numbers. If you are comparing paid programmes, read our coding bootcamp guide first, and check any claim on the provider's own page.
How do you know you are progressing?
Use a simple weekly check that you can run without paying anyone. This is our own rule, not an official standard.
- Solve about ten short exercises a week and keep a log of what you solved and what confused you.
- Rebuild one old exercise from a blank file without looking.
- Explain one program aloud, line by line, to a friend or to a mirror.
- Push finished projects to a public repository so your progress is visible.
When you can build a small project, such as the marks table, without copying, you are ready to look at deeper paths. Our guide on how to become a software developer maps the next steps.
Next step
Tonight, install Python, run the two-line program, and write the date and one thing you learned in a notebook. Tomorrow, add a loop to it. If JavaScript is your pick, our beginner's guide to JavaScript frameworks shows what comes after the basics.
Frequently asked questions
Which programming language should a complete beginner start with?
Pick one and stick with it. Python is a common choice for its readable syntax, and JavaScript suits people who want browser results. We found no official ranking, so this is advice.
Can I learn coding without a degree in India?
Yes, you can start learning without one. Use free tools, build small projects and share them publicly. Some employers set degree requirements, so check each job post, and we have no verified hiring data to quote.
How many hours a day do I need?
No source we checked sets a required number. Many learners find a steady 45 to 60 minutes a day workable, but that is an illustrative target. Consistency matters more than long weekend sessions.
Which free courses are official or government-run?
SWAYAM is an initiative of the Ministry of Education, Government of India, according to its home page. We have not verified fees or certificates, so check each course page before enrolling.
How do I know I am ready for a first job or internship?
You can build a small project without copying, explain your code aloud, and show finished work in a public repository. Readiness varies by role, so compare yourself with the job post.
Is YouTube enough to learn coding?
It is popular but not enough alone. Stack Overflow's 2025 survey, which is global, found learners use YouTube for community more than professionals do, 70% against 60%. Pair videos with daily practice.