MicrolearnENPTES

Numbers and text

Lesson 3 of 20 · Py.Micro

int, float and str: what each type can do and how to convert between them.

+ - * / work as expected; // is whole division, % is the remainder and is the power. / always gives a float** (decimal number).

Check yourself

What is 7 // 2?

Do it in the browser: a real Python tool, a short mission and instant feedback. No install.

Start this lesson — free
← VariablesReading input →

All lessons · Py.Micro