Data types used in Python

0
37

Below are the examples, how you can set different kind of Data types in Python.

Example Data Type
x = "Hello World" str
x = 20 int
x = 20.5 float
x = 1j complex
x = ["apple", "banana", "cherry"] list
x = ("apple", "banana", "cherry") tuple
x = range(6) range
x = {"name" : "John", "age" : 36} dict
x = {"apple", "banana", "cherry"} set
x = frozenset({"apple", "banana", "cherry"}) frozenset
x = True bool
x = b"Hello" bytes
x = bytearray(5) bytearray
x = memoryview(bytes(5)) memoryview
x = None NoneType
Search
Categories
Read More
Other
Innovation in Animal Health: Wound Care Products Market Outlook
"Executive Summary Animal Wound Care Market : CAGR Value Data Bridge Market Research...
By Dbmrraaj Sinha 2025-07-21 04:13:39 0
Other
Centre High Mount Stop Lamps Market: Sector Insights: Market Distribution, Scale, Developments, Forecast, and Industry Snapshot
Executive Summary Centre High Mount Stop Lamps Market : The centre high mount stop...
By Ganesh Patil 2025-07-01 06:05:40 0
Other
Biaxially Oriented Polyethylene Terephthalate (BOPET) Films Market Analysis by Size & Research Report (2024–2032) | UnivDatos
According to the UnivDatos analysis, growing demand from the food & beverages,...
By Ahasan Ali 2025-05-21 08:44:49 0
Other
Co-Robots Robotics Market Trends, Insights and Future Outlook
"Executive Summary Co-Robots Robotics Market :  Data Bridge Market Research...
By Harshasharma Dbmr 2025-07-16 06:53:41 0
Other
Speed Up Your Site: Best Hosting for WordPress Performance
If you're launching a small business or startup, your website is more than just a digital...
By Parthipan Srinivasan 2025-06-02 09:54:38 0
Omaada - A global social and professionals networking platform https://www.omaada.com