How to learn to code from scratch

You learn to code by building things, not by watching tutorials. Pick one beginner-friendly language, learn the basics quickly, and start a small project that matters to you as soon as you can.

Start this week

Your first 3 steps

  1. 1

    Choose your first language: Python for general use or JavaScript for websites

    5 min · Done when: One language picked

    Both are beginner-friendly and in high demand. Picking one and sticking with it matters more than which.

  2. 2

    Start a free beginner course and finish the first lesson

    30 min · Done when: Lesson one is done

    Free courses from sites like freeCodeCamp or official language tutorials cover the basics well.

  3. 3

    Write down one tiny project idea you'd actually use

    10 min · Done when: One project idea written

    A project gives you a reason to learn and something to show employers later.

Pursivon reminds you each morning and builds the rest of your plan.

Your first 4 weeks

  1. Week 1

    Do 30 minutes of your course every day. Learn variables, conditions and loops.

  2. Week 2

    Keep going with lists or arrays and functions. Rewrite each example from memory.

  3. Week 3

    Start your tiny project. Get the simplest version working, even if it's ugly.

  4. Week 4

    Improve the project, save it to GitHub, and write down what you'd learn next.

Mistakes that stop most people

  • Jumping between languages and courses.
  • Watching tutorials without typing the code yourself.
  • Waiting until you "know enough" to start a project.

Get steps for your situation

Free. No account needed.

Common questions

Which programming language should I learn first?

Python if you're not sure, JavaScript if you want to build websites. Both are good first languages.

How long does it take to learn to code?

You can build simple projects within a few weeks. Being job-ready usually takes many months of steady practice and projects.

Do I need a computer science degree?

Not for many jobs. A portfolio of real projects shows employers what you can do.

More guides

See all guides →