DML School of Technology
Menu

CoursesSkills

Python: First Programs

Write real Python from the first lesson: input and output, decisions, loops, lists and functions. Every lesson runs in the Code studio in your browser, with a marked leap-year lab and practice challenges.

  • Beginner
  • About 10 hours
  • 4 modules
  • 9 lessons
  • 1 hands-on lab
  • Free

What you will be able to do

  • Write Python programs that read input, calculate and print results
  • Make decisions with if, elif, else, and combine conditions with and, or and not
  • Repeat work with for and while loops over lists and ranges
  • Write and test functions that return values

Before you start

None. You need a browser; nothing to install.

Course outline

First programs 2 lessons

  1. print, variables and input Reading
  2. First programs quiz Quiz

Decisions 3 lessons

  1. if, elif, else, and, or, not Reading
  2. Lab: leap years Lab
  3. Decisions quiz Quiz

Loops and lists 2 lessons

  1. for, while, lists and dictionaries Reading
  2. Loops quiz Quiz

Functions 2 lessons

  1. def, parameters and return Reading
  2. Final check Quiz