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
Office Equipment and Supplies
Fiber to the Home (FTTH) Gigabit Passive Optical Network (GPON) Market Size, Share, Trends, Demand, Future Growth, Challenges and Competitive Analysis
"Executive Summary Fiber to the Home (FTTH) Gigabit Passive Optical Network (GPON)...
By DATA BRIDGE 2025-06-27 08:46:46 0
Health
Medial Knee Pain: Causes, Prevention & Treatment Tips
Knee pain is a common problem that can be caused by many things including age, injury, or...
By Steven Smith 2025-05-29 14:22:23 0
Other
MEA Automotive Camera Market Size & Scope 2034
The Middle East and Africa automotive camera market is witnessing steady growth, driven by...
By Luke Martin 2025-06-24 12:10:55 0
Other
Calcium Nitrate Market Size, Demand, Share, Trends and Forecast 2035
The global Calcium nitrate market is worth USD 14.81 billion in 2025. According to...
By Naina Deshmukh 2025-07-16 09:53:15 0
Other
Celiac Disease Market Insights: Growth, Share, Value, Size, and Analysis
"Executive Summary Celiac Disease Market : CAGR Value Global celiac disease market size...
By Shweta Kadam 2025-07-24 04:17:54 0
Omaada - A global social and professionals networking platform https://www.omaada.com