Lesson 2 of 144 min

Your first lines of Python

A variable keeps a value under a name; text and numbers act differently, and a function such as int turns text into a number.

After this lesson you can keep a value in a variable, tell text from a number, call a function, and read an error.

Loading the video…

Refreshers

An idea from an earlier lesson shows up here when the video leans on it.

You use this lesson in Lab 1: Score a chatbot's answers, after Lists, loops and if.

Facts last checked on .