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 |
Buscar
Categorías
- Information Technology
- Office Equipment and Supplies
- Cars and Trucks
- Persons
- Books and Authors
- Tutorials
- Art
- Causes
- Crafts
- Dance
- Drinks
- Film
- Fitness
- Food
- Juegos
- Gardening
- Health
- Home
- Literature
- Music
- Networking
- Other
- Party
- Religion
- Shopping
- Sports
- Theater
- Wellness
Read More
Dental Turbines Market Research, Review, Applications and Forecast to 2025
The worldwide "Dental Turbines Market" 2025 Research Report presents a professional and complete...
Commercial Aviation Market Analysis and Outlook Report 2025-2034
Global Commercial Aviation Market: Industry Trends, Share, Size, Growth, Opportunity and...
The Evolution of Stussy: From Surf Roots to Global Fashion Staple
Stussy is one of the brands that has had the biggest influence on the fashion industry. Starting...
法執行用ドローンの世界調査レポート:2031年には1250百万米ドルに達する見込み
2025年5月19日に、QYResearch株式会社は「法執行用ドローン―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」の調査レポートを発表しました。本報告書は、法...
© 2025 Omaada - A global social and professionals networking platform
Spanish
