Python datatypes. Python code with example. Python Complete Course Video # 5

Publicado em: 29 Dezembro 2022
no canal de: Guangshu Coder
27
like

Built-in Data Types
In programming, data type is an important concept.
Variables can store data of different types, and different types can do different things.
Python has the following data types built-in by default, in these categories:
Text Type: str
Numeric Types: int, float, complex
Sequence Types: list, tuple, range
Mapping Type: dict
Set Types: set, frozenset
Boolean Type: bool
Binary Types: bytes, bytearray, memoryview
None Type: NoneType

#python #coding #programming
Python datatypes
String
x = "Guangshu Coder"
print(type(x))
integer
x = 233
print(type(x))
Float
x = 3.1467
print(type(x))
complex
x = 2j
print(type(x))
list
x = ["apple", "Banana", "Orange"]
print(type(x))
tuple
x = ("apple", "Banana", "orange")
print(type(x))
range
x= range(54)
print(type(x))
dict
x= {"name": "Guangshu Coder", "age": 22}
print(type(x))
set
x = {"Guanghu", "coder", "programmer"}
print(type(x))
bool
x = False
print(type(x))
NoneType
x = None
print(type(x))


Nesta página do site você pode assistir ao vídeo on-line Python datatypes. Python code with example. Python Complete Course Video # 5 duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Guangshu Coder 29 Dezembro 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 27 vezes e gostou like espectadores. Boa visualização!