Module 1
Basic types
The kinds of data Python understands.
Different kinds of data
Python works with several basic types of data. The most common are strings (text), integers (whole numbers), floats (decimals), and booleans (True or False).
Basic data types
Step 1
Step 2
Python recognizes different kinds of information.
PythonFour basic types.
name = "Control" # str (string) temperature = 30 # int (integer) weight = 2.5 # float done = True # bool (boolean)
→
What type is "Hello"?
What type is 42?