Step 1 of 6

Step 1 · Read and run

Four kinds

Every value in Python is one of a few kinds (programmers say types). The four you'll meet most:

  • int — a whole number: 15
  • float — a number with a decimal point: 1.62
  • str — text ("string") in quote marks: "Carys"
  • bool — True or False: capital first letter, no quote marks

A variable happily holds any of them.

Run the program to carry on.
kinds.py

Output

Press Run to see what your program prints.