</>CodeVerse
Log inSign up
Py
BeginnerProgramming

Python from scratch

Learn to code with Python with no prior knowledge: variables, decisions, loops, functions, collections, errors, files and objects, with exercises that run in your browser.

23 lessons 4 h 51 min 200 XP No ratings yet 2 students
Start course

Complete every lesson to get your certificate.

Course content

1

Module 1

First steps

What programming is, your first program, variables, data types, operators, text and user input.

0/8

Unit 1 · Your first program

  • What is programming?8 min+20
  • print() in depth and comments10 min+20
  • Reading errors without fear9 min+20

Unit 2 · Storing information

  • Variables12 min+20
  • Data types12 min
2

Module 2

Decisions and loops

Make your programs decide with if/elif/else and repeat tasks with while and for.

0/5

Unit 1 · Conditionals

  • Making decisions with if and else13 min+20
  • Several options with elif, and, or and not14 min+20

Unit 2 · Loops

  • Repeating with while13 min+20
  • Repeating with for and range()13 min+20
  • Loop patterns: accumulate, count, break and continue
3

Module 3

Functions and collections

Organize your code into reusable functions and store lots of data with lists, tuples, dictionaries and sets.

0/6

Unit 1 · Functions

  • Creating your own functions15 min+20
  • Default parameters and variable scope13 min+20

Unit 2 · Data collections

  • Lists16 min+20
  • Tuples and unpacking10 min+20
  • Dictionaries15 min
4

Module 4

Beyond the basics

Handle errors, store data in files, use modules and create your own objects with classes.

0/4

Unit 1 · Robust programs

  • Handling errors with try and except14 min+20
  • Reading and writing files13 min+20
  • Modules and libraries11 min+20

Unit 2 · Object-oriented programming

  • Classes and objects18 min+20
+20
  • Operators12 min+20
  • Working with text14 min+20
  • Asking the user for data with input()11 min+20
  • 15 min
    +20
    +20
  • Sets10 min+20