top of page

Data Types: Booleans

Data Types: Numbers

Data Types: Strings



Data Types: Booleans



The last data type we will be using is called a Boolean, which can take one of two values: True and False. These data types might seem a little silly now, but will be really useful in the next section, when we talk about If Statements.

Let's see how Booleans work in code:

1 a = True

2 print(type(a))

3 b = False

4 print(type(b))

bottom of page