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
Rechercher
Catégories
Lire la suite
Autre
Bamboo Toothbrush Market Forecast, Key Players, Market Scope and Dynamics
Executive Summary Bamboo Toothbrush Market : Data Bridge Market Research analyses that...
Par Shim Carter 2025-06-21 08:30:25 0
Autre
Signs It’s Time to Hire a Creative Agency (And What Happens Next)
In today’s hypercompetitive market, creativity isn't just a nice-to-have—it’s a...
Par Mila Scarle 2025-06-05 11:24:07 0
Autre
Graceville Pizza
Best Graceville Pizza | Fresh, Hot & Delicious | Pizzaville Graceville Craving the best...
Par Technology Welldone 2025-06-06 10:35:21 0
Autre
Micro Drone Market Dynamics, Analysis, Growth Insights, Key Players, Size Value and Latest Trends By 2035
The global micro drone market is expected to grow significantly, rising from USD 4.51...
Par Naina Deshmukh 2025-07-16 10:07:17 0
Autre
世界のデジタルパワーオーディオアンプ市場:主要メーカーランキングと市場シェア分析2025
2025年7月21日に、QYResearch株式会社(所在地:東京都中央区)は、「デジタルパワーオーディオアンプ―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」の調...
Par Liu Yuan 2025-07-21 02:00:03 0
Omaada - A global social and professionals networking platform https://www.omaada.com