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 |
Site içinde arama yapın
Kategoriler
- Information Technology
- Office Equipment and Supplies
- Cars and Trucks
- Persons
- Books and Authors
- Tutorials
- Art
- Causes
- Crafts
- Dance
- Drinks
- Film
- Fitness
- Food
- Oyunlar
- Gardening
- Health
- Home
- Literature
- Music
- Networking
- Other
- Party
- Religion
- Shopping
- Sports
- Theater
- Wellness
Read More
Blockchain In Banking And Financial Services Market Share, Size & Growth Forecast by 2034
The most recent report published by Vantage Market Research indicates that the "Blockchain In...
Vai trò của trí tuệ nhân tạo trong việc phát triển các trò chơi và trải nghiệm người dùng tại các sòng bạc trực tuyến
Vai trò của trí tuệ nhân tạo trong việc phát triển các...
Nuclear Reactor Construction Market Growth Tied to Climate Goals
Nuclear Reactor Construction Market is growing due to ris...
法執行用ドローンの世界調査レポート:2031年には1250百万米ドルに達する見込み
2025年5月19日に、QYResearch株式会社は「法執行用ドローン―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」の調査レポートを発表しました。本報告書は、法...
Cab Booking Software: The Future of Ride-Hailing Businesses
On-demand cab services have become a vital part of modern urban transportation, with the industry...