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 |
Zoeken
Categorieën
- Information Technology
- Office Equipment and Supplies
- Cars and Trucks
- Persons
- Books and Authors
- Tutorials
- Art
- Causes
- Crafts
- Dance
- Drinks
- Film
- Fitness
- Food
- Spellen
- Gardening
- Health
- Home
- Literature
- Music
- Networking
- Other
- Party
- Religion
- Shopping
- Sports
- Theater
- Wellness
Read More
Innovative Insights into Hand Held Laser Welding Machines: Unlock Precision and Efficiency with LaserChina
What is a Hand Held Laser Welding Machine?
A hand held laser welding machine is a...
全天候レーザー鳥類忌避装置の世界市場規模:全体売上と需要分析予測2025~2031
2025年5月15日に、QYResearch株式会社(所在地:東京都中央区)は、「全天候レーザー鳥類忌避装置―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」の調査資...
North America Rocking Chairs and Adirondack Chairs Market Outlook: Innovations and Opportunities to 2030
The North America rocking chairs and Adirondack chairs market, valued at US$ 1.6 billion in 2022,...
小型高速モーター世界規模分析:市場シェア、産業動向、成長機会2025-2031
2025年6月10日に、QYResearch株式会社(所在地:東京都中央区)は「小型高速モーター―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」の最新調査資料を発行...
© 2025 Omaada - A global social and professionals networking platform
Dutch
