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
The Newest Styles Hermes Bags On Sale
The Newest Styles Hermes Bags On Sale
Understanding the Real and Compound Chocolate Market: Trends, Growth, and Opportunities
The global chocolate market has long been dominated by two major types of chocolate: real...
Amplify Your Reach: How to Integrate Social Media Into a High-Performance B2B Lead Generation Strategy
Why Social Media Works for B2B Lead Generation
Contrary to the outdated belief that social...
Asia-Pacific Casino Gambling Market Size, Trends Anaylsis and Opportunities 2034
Casino gambling entails betting money on games of chance common in casinos, such as slot...
North America Crawler Camera System Market Analysis: Share Insights, Growth Scope, Current Movements, Future View, and Sector Breakdown
Executive Summary North America Crawler Camera System Market :
Data Bridge Market...