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 |
Search
Nach Verein filtern
- Information Technology
- Office Equipment and Supplies
- Cars and Trucks
- Persons
- Books and Authors
- Tutorials
- Art
- Causes
- Crafts
- Dance
- Drinks
- Film
- Fitness
- Food
- Spiele
- Gardening
- Health
- Home
- Literature
- Music
- Networking
- Other
- Party
- Religion
- Shopping
- Sports
- Theater
- Wellness
Read More
Stop Speeding Fines in Their Tracks with Speeding Offence Solicitors at Motoring Defence
The United Kingdom—a realm where the rush of its A-roads from Cornwall to the motorways of...
Navigating Deportations from UK, How Immigration Solicitors4me Supports Clients Facing Removal
Deportations from UK have become a significant focus of immigration policy, particularly for...
Get Your Hands on Discounted Human Made Hoodies – A Guide for Streetwear Lovers in Bold Humanmade Taiwan
Introduction: The Reason Everyone is Looking for a Human Made HoodieStreetwear is more than a...
How Can Custom Mylar Bags Increase Your Packaging
Packaging plays a massive role in how clients see and pick out merchandise. It does more than...
© 2025 Omaada - A global social and professionals networking platform
Deutsch
