Python - Introduction Cheat Sheet
Python - Introduction Cheat Sheet
x = b"Color" bytes
Python Variables x = bytearray(8) bytearray
#code x = memoryview(bytes(8)) memoryview
x = "How old are you ?" #x is of type str
Get the data type of x :
print(x)
x = "Color"
#output
print(type(x))
>>> How old are you ?
>>> str
#code
x = 25 #x now is of type int
print(x)
#output
>>> 25