Home / Courses / AI & ML
AI & ML track · Beginner friendly

Python Primer

A free, self-paced start in Python for anyone heading into the AI & ML track.

About 20 hours of short lessons and exercises. Finish it before Machine Learning with Python, or use it to find out whether you enjoy programming.

Duration
2 weeks
Guided hours
20 hrs
Projects
1
Mode
Self-paced
marks.py
# Average marks and a grade for each student
marks = {"Asha": [82, 91, 77], "Ravi": [64, 58, 71]}

def grade(average):
    if average >= 80:
        return "A"
    if average >= 60:
        return "B"
    return "C"

for name, scores in marks.items():
    average = sum(scores) / len(scores)
    print(f"{name}: {average:.1f} ({grade(average)})")
The kind of code you write in Python Primer
Outcomes

What you will be able to do

Tools and technologies covered:

PythonJupyterGit
  • Write and run Python programs
  • Work with strings, lists and dictionaries
  • Use loops, conditions and functions
  • Read error messages and fix your own bugs
Syllabus

2 weeks, 2 modules

Short lessons you can take at your own pace. Mark each one complete to track your progress and earn the certificate.

  • Installing Python and running code
  • Variables, numbers and strings
  • Lists and dictionaries

  • Conditions and loops
  • Writing functions
  • Reading errors and debugging
  • Mini project: marks calculator
Projects

What you will build

Every project lives on your GitHub and is reviewed like a real pull request.

Project 1
Marks calculator

Read a list of marks, compute totals, averages and grades, and print a report.

Who it is for
  • Graduates who have never written code
  • Anyone planning to take Machine Learning with Python
What you need
  • No prior coding needed
  • A laptop and about 10 hours a week
Fees

Free, with a certificate

All lessons and the completion certificate are free. You only need an account so your progress is saved.

Python Primer

Free
  • 2 weeks, 20 guided hours
  • 1 reviewed project
  • Completion certificate
FAQ

Questions about this course

Yes. You need a free account so your progress is saved.

Yes, a completion certificate once every lesson is marked complete.
Keep exploring

Other courses

All courses
AI & ML
14 weeks · Intermediate
Machine Learning with Python

From NumPy and pandas to trained, evaluated models on real Indian datasets.

View course details
AI & ML
8 weeks · Advanced
Generative AI and LLM Applications

Prompting, embeddings, retrieval augmented generation and shipping an AI feature inside a web app.

View course details