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
Saudi Arabia Power Transmission Lines And Towers Market Turns Digital
Saudi Arabia power transmission lines and towers market g...
Незабываемые встречи в Донецке!
Проститутки Донецк. Проститутки в Донецке – это одна из самых обсуждаемых и спорных тем в...
Duty-Free and Travel Retail Industry Outlook 2032
The Duty-Free and Travel Retail Market is experiencing notable growth, fueled by increasing...
Messaging Platform Market Analysis and Outlook Report 2025-2034
The most recent report published by Vantage Market Research indicates that the "Messaging...
携帯電話指紋認証カバー市場競争分析:主要企業、ランキング、投資動向2025
2025年6月4日に、QYResearch株式会社(所在地:東京都中央区)は「携帯電話指紋認証カバー―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」の最新調査資料を...
© 2025 Omaada - A global social and professionals networking platform
Japanese
