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
Pesquisar
Categorias
Leia mais
Outro
Sapphire Glass Market Value: Growth, Share, Size, Scope, and Trends
"Executive Summary Sapphire Glass Market :  Data Bridge Market Research analyses...
Por Shweta Kadam 2025-07-02 08:39:50 0
Outro
Contrast Media/Contrast Agents Market Revenue and Share Study Analysis to 2034
The most recent report published by Vantage Market Research indicates that the "Contrast...
Por Tushar Jane 2025-06-10 05:38:35 0
Health
Menthol Bold Crystal
Menthol Bold Crystal, Menthol Bold Crystal bulk supplier,best price in india -theyoungchemist We...
Por Natural Chemist8 2025-06-16 07:49:26 0
Health
Anchoring Trust: How the Marine Insurance Market is Evolving
The marine insurance sector plays a critical role in global trade and shipping by protecting...
Por Mayur Gunjal 2025-05-14 06:29:16 0
Sports
Group Badminton Lessons
Group Badminton Lessons – Improve Your Game with Private Badminton Lessons Singapore...
Por Business Maker 2025-07-11 09:24:49 0
Omaada - A global social and professionals networking platform https://www.omaada.com