Machine Learning

How to start learning AI from scratch: a beginner order

Start with programming, then machine learning, then generative AI. Most beginner AI courses assume you can already write a loop and a function, so skipping that step is the usual reason people stall. If you only need to work alongside AI, not build it, stop after step 1 and take a conceptual course instead.

The order that works for most beginners

  1. Learn to code in Python. Aim to write loops, functions and if/else statements without looking them up.
  2. Learn machine learning: how models are trained, tested and improved.
  3. Learn generative AI: language models, prompting, retrieval and fine-tuning.
  4. Build one small project that uses what you learned, and keep it public.

Generative AI sits last because its courses lean on the earlier steps. Our guide to RAG and fine-tuning picks up from there.

Step 1: get the coding basics

Look for a course that says it is for people with no programming experience, teaches Python or a language you can carry into AI, and has exercises you submit, not only videos.

Ready to move on when you can solve a small problem in Python without copying a solution. If you already code, skip this step.

Step 2: learn how machine learning works

Look for a course that states its prerequisites up front (basic coding and high-school maths are common for beginner courses), keeps the deeper maths optional at first, and has hands-on labs in Python. It should cover how models are trained and tested before it moves to neural networks.

Ready to move on when you can explain overfitting and train a simple model on a dataset you chose yourself.

Step 3: add generative AI

Look for a course that starts from the basics, ends in a project you can show, and says what the certificate costs. Check that the listed course hours add up to the duration it quotes; if they do not, ask the provider or plan for more time.

Ready to finish when you can build a small retrieval-based app and explain when fine-tuning would be worth the cost instead.

Examples of beginner courses at each step

Three reviewed courses from three providers, one for each step. They show what the checks above look like in practice; they are examples, not a recommended path.

  • Coding basics: Harvard CS50x. Harvard's course page says it is for learners "with or without prior programming experience" and that two thirds of its students have never taken a computer science course. It teaches C first, then Python in week 6, then SQL and web basics, in eleven weeks of material. It is free through OpenCourseWare; a verified certificate is a paid option through edX.
  • Machine learning: DeepLearning.AI Machine Learning Specialization. The program page lists it as beginner level, at about 95 hours in total. It asks for basic coding and high-school maths, and puts the deeper maths in optional videos. Its three courses cover regression and classification, neural networks and tree ensembles, then clustering, recommenders and reinforcement learning, with labs in Python using NumPy, scikit-learn and TensorFlow.
  • Generative AI: IBM Generative AI Engineering. Coursera lists it as beginner level with no prior experience required, 16 courses, about 6 months at 6 hours a week. The course list runs from AI foundations and Python through machine learning and deep learning to fine-tuning and a final guided project on RAG with LangChain. Coursera does not show the certificate price in the text we read, and the listed course hours add up to more than the six months it quotes.

Many other courses meet the same checks. Compare them in our best generative AI courses and best machine learning courses. Prices and start dates change, so confirm them on the provider's page.

When to skip steps

If you...Start at
Work with AI but will not build itA conceptual course; see the best AI courses
Already write PythonStep 2
Know machine learning basicsStep 3

Written by the Best Course Guide editorial team. Course details change, so check the provider's page for current prices and dates. See our editorial policy.

Keep going

Where to go next

The first is the natural next step from this page. The rest follow what you have been reading.

More guides to read