#Introduction
In this tutorial, we learn about Integers, Lists, Dictionaries, and Tuples. Python data type cheatsheet begins.
python data type cheatsheet
Integers
Integers represent whole numbers. Example
age = 30
rank = 20
![image 6](https://www.devopsroles.com/wp-content/uploads/2022/10/image-6.png)
Floats represent decimal numbers. For example,
temperature = 20.2
![image 7](https://www.devopsroles.com/wp-content/uploads/2022/10/image-7.png)
Strings represent text. For example
site = "devopsroles.com"
![image 8](https://www.devopsroles.com/wp-content/uploads/2022/10/image-8.png)
Lists represent arrays of values that may change during the program
members = ["HuuPV", "no name", "Jack"]
ages_values = [30, 12, 54]
![image 9](https://www.devopsroles.com/wp-content/uploads/2022/10/image-9.png)
Dictionaries represent pairs of keys and values:
phone_numbers = {"huupv": "+123456789", "Jack": "+99999999"}
The Keys and values of a dictionary can be extracted
![image 10](https://www.devopsroles.com/wp-content/uploads/2022/10/image-10.png)
Tuples
Tuples represent arrays of values that are not to be changed during the program
convert Tuples to list
![image 11](https://www.devopsroles.com/wp-content/uploads/2022/10/image-11.png)
convert the list to a tuple
get a list of attributes of a data type
![image 12](https://www.devopsroles.com/wp-content/uploads/2022/10/image-12-1024x288.png)
get a list of Python built-in functions
![python data type cheatsheet](https://www.devopsroles.com/wp-content/uploads/2022/10/image-13-1024x188.png)
get the documentation of a Python data type
help(str)
help(str.replace)
help(dict.values)
Conclusion
You learn python data type cheatsheet. I hope this will be helpful. Thank you for reading the DevopsRoles page!