Data types used in Python
Posted 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 |
Search
Categories
- Information Technology
- Office Equipment and Supplies
- Cars and Trucks
- Persons
- Books and Authors
- Tutorials
- Art
- Causes
- Crafts
- Dance
- Drinks
- Film
- Fitness
- Food
- Games
- Gardening
- Health
- Home
- Literature
- Music
- Networking
- Other
- Party
- Religion
- Shopping
- Sports
- Theater
- Wellness
Read More
Customized Dog Clothing: Personalization Trends and Opportunities
The global dog clothing market continues its upward trajectory, driven by a growing culture of...
Asia-Pacific Pipe Laying Vessels Market Share, Demand, and Future Prospects
Asia-Pacific Pipe Laying Vessels Market Overview:
The Asia-Pacific Pipe Laying Vessels Market...
リニアビーム煙火災感知器の市場規模、2031年に5575百万米ドルに達する見込み
2025年6月9日に、QYResearch株式会社(所在地:東京都中央区)は、「リニアビーム煙火災感知器―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」の最新調査レ...
High-Performance Computing Units Market to Register 7% CAGR Through 2030 | Key Drivers and Opportunities
The High-Performance Computing Units Market size was valued at around USD 41...
Asia-Pacific Virtual Pipelines Market Size, Trends, and Forecast
Asia Pacific Virtual Pipelines Market
The Asia-Pacific Virtual Pipelines Market has been...