1# you can use the function type() which will returns the type of the variable
2A = "Hello world !"
3# here are some uses of it
4>>> type(A)
5<class 'str'>
6>>> type(A) is int
7False
8>>> type(A) is str
9True
1# Pyhton data types
2
3# Integer
4age = 18
5
6# Float (AKA Floating point number)
7current_balance = 51.28
8
9# Boolean
10is_tall = False # can be set to either True or False
11
12# String
13message = "Have a nice day"
14
15# List
16my_list = ["apples", 5, 7.3]
17
18# Dictionary
19my_dictionary = {'amount': 75}
20
21# Tuple
22coordinates = (40, 74) # can NOT be changed later
23
24# Set
25my_set = {5, 6, 3}
1# Float
2average_tutorial_rating = 4.01
3# Integer
4age = 20
5# Boolean
6tutorials_are_good = True # True or False
7# arrays/lists
8numbers = [1, 2, 3]
1Text Type: str
2Numeric Types: int, float, complex
3Sequence Types: list, tuple, range
4Mapping Type: dict
5Set Types: set, frozenset
6Boolean Type: bool
7Binary Types: bytes, bytearray, memoryview
8