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
Căutare
Categorii
Citeste mai mult
Alte
Best Good Morning Images with Quotes
Best Good Morning Images with Quotes to Brighten Your Day Discover Unique Good Morning Images...
By Technology Welldone 2025-07-04 12:01:20 0
Alte
Emergency Medical Innovations: Spotlight on Bleeding Control Kits
The global bleeding control kit market is poised for steady growth over the next decade, driven...
By Mayur Gunjal 2025-06-27 09:38:19 0
Dance
North America Medical Devices Market Expands with Rise in Chronic Conditions and Digital Health Integration
"Executive Summary North America Medical Devices Market :  Data Bridge Market...
By Komal Galande 2025-07-14 06:39:08 0
Alte
Fruit Brandy Market Size, Share, Trends, Demand, Growth and Competitive Analysis
Executive Summary Fruit Brandy Market : Global fruit brandy market is expected to gain...
By Nshita Hande 2025-07-02 04:24:43 0
Alte
White House Tie Clip Online
Buy White House Tie Clip Online in the USA – Elegant Presidential Accessory for Every...
By Technology Welldone 2025-07-12 14:47:30 0
Omaada - A global social and professionals networking platform https://www.omaada.com