Data types used in Python
Posté 2022-10-10 11:10:35
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
- Information Technology
- Office Equipment and Supplies
- Cars and Trucks
- Persons
- Books and Authors
- Tutorials
- Art
- Causes
- Crafts
- Dance
- Drinks
- Film
- Fitness
- Food
- Jeux
- Gardening
- Health
- Domicile
- Literature
- Music
- Networking
- Autre
- Party
- Religion
- Shopping
- Sports
- Theater
- Wellness
Lire la suite
Bio-PE Pouches Market Analysis by Size, Growth, & Research Report (2024–2032) | UnivDatos
According to the UnivDatos analysis, as per their “Bio PE Pouches Market” report, the...
商業用透明ディスプレイ世界市場調査レポート:規模、成長戦略、トレンド予測2025-2031
QYResearch株式会社(所在地:東京都中央区)は、最新の調査資料「商業用透明ディスプレイ―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」を2025年5月22日...
極低温液体冷媒市場調査レポート:主要企業、競合分析、成長動向2025-2031
2025年5月8日に、QYResearch株式会社(所在地:東京都中央区)は「極低温液体冷媒―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」の最新調査資料を発行しま...
Automotive Oil Filter Market Comprehensive Revenue Analysis: Forecasting Industry Outlook by Fact MR
The global automotive oil filter market reached a valuation of US$ 70.0 Billion, and is...
© 2025 Omaada - A global social and professionals networking platform
Japanese
