Python has several basic data types.

Strings

In programming, a piece of text is called a "string". It's a sequence of characters strung together. To create one, wrap the text in single quotes or double quotes. Both work, but double quotes are preferred.

name_with_single_quotes = 'boot.dev' # not so good
name_with_double_quotes = "boot.dev" # so good

Numbers

When you write a number, you do not put quotes around it. 5 is a number, while "5" is a string.

An integer (or "int") is a whole number, with no decimal part:

x = 5 # positive integer
y = -5 # negative integer

A float is a number with a decimal part:

x = 5.2
y = -5.2

Booleans

A "Boolean" (or "bool") is a type with only two possible values: True or False. Computers basically work with 1s and 0s, and you can think of each one as a boolean: 1 is True and 0 is False. In Python, True and False are written with a capital letter.

is_tall = True
is_short = False

Source: boot.dev