Skip to content
Gwecode.
courses
sign up free log in
~ / courses / python / python-basics
Beginner · Python

Python for Beginners

Your very first steps in programming. Learn to make the computer show messages, store information, do math, work with text and lists, make decisions, and repeat actions "" then build a tiny project of your own. No experience needed.

A gentle, hands-on introduction to Python for people who have never written a line of code. You'll run real code right in your browser from the very first lesson. We cover printing output, variables and types, strings, numbers and math, reading error messages without panic, lists, if/else decisions, for loops, and finish by building a small program from scratch. Every lesson is short, warm, and practical.

Beginner 13 lessons ~104 min Python
Start the course
01

First Steps

Run your very first program, learn how to show output on the screen, and store your first pieces of information in variables.

3 lessons
  1. 1 Your First Program Make the computer say hello 6 min →
  2. 2 Printing More Than Once Lines, blank lines, and combining text 6 min →
  3. 3 Storing Information in Variables Give your data a name so you can reuse it 7 min →
02

Words and Numbers

Learn the difference between text and numbers, do real math, work with strings, and meet your first error messages.

4 lessons
  1. 4 Text vs Numbers: Types Why "5" and 5 are not the same thing 8 min →
  2. 5 Doing Math Add, subtract, multiply, divide and more 8 min →
  3. 6 Working With Strings Joining text and dropping values inside it 8 min →
  4. 7 Making Friends With Errors Why red text is good news, not a disaster 7 min →
03

Collections and Choices

Store many things in a list, and teach your program to make decisions with if and else.

3 lessons
  1. 8 Lists: Many Things at Once Keep a whole collection under one name 8 min →
  2. 9 Making Decisions with if/else Run different code depending on what's true 9 min →
  3. 10 Combining Conditions Using and, or, and not 8 min →
04

Loops and a Project

Repeat actions without copy-pasting, count with ranges, and put everything together into your first real program.

3 lessons
  1. 11 Repeating With for Loops Do something for every item in a list 9 min →
  2. 12 Loops Plus Decisions Combine for loops with if to do real work 9 min →
  3. 13 Final Project: Shopping Cart Put it all together in one small program 11 min →
</>
Gwecode

Free, friendly programming lessons for absolute beginners and beyond.

Courses Start here About
© 2026 Gwecode. Always free to learn.
playground
codeCtrl+Enter to run
output
Run your code to see the result.