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 |
Cerca
Categorie
- Information Technology
- Office Equipment and Supplies
- Cars and Trucks
- Persons
- Books and Authors
- Tutorials
- Art
- Causes
- Crafts
- Dance
- Drinks
- Film
- Fitness
- Food
- Giochi
- Gardening
- Health
- Home
- Literature
- Music
- Networking
- Altre informazioni
- Party
- Religion
- Shopping
- Sports
- Theater
- Wellness
Leggi tutto
Comme Des Garcons new design clothing shop
At Comme Des Garçons, fashion is not just about clothing — it's an avant-garde...
世界の塩酸ドキソルビシン市場:競争環境、産業動向、成長予測2025-2031年
塩酸ドキソルビシン世界総市場規模...
Brain Wave Analyzer Market Size, Share & Trend Analysis 2025-2034
The worldwide "Brain Wave Analyzer Market" 2025 Research Report presents a professional and...
Famous Badminton Players
Famous Badminton Players & Top Athletes in Singapore | Private Badminton Lessons
Discover the...
世界のOWSオープンイヤーヘッドフォン市場規模2025-2031:競合状況、需要分析、成長予測
OWSオープンイヤーヘッドフォン世界総市場規模...
© 2025 Omaada - A global social and professionals networking platform
Italiano
