In [1]:
#string variable
stVariable = "Hello world"
print(type(stVariable))
print(stVariable)

#interger variable
inVariable = 20
print(type(inVariable))
print(inVariable)

#float variable
flVariable = 20.5
print(type(flVariable))
print(flVariable)

#complex variable
coVariable = 1j
print(type(coVariable))
print(coVariable)

#list variable
liVariable = ["Apple", "Banana", "Cherry"]
print(type(liVariable))
print(liVariable)

#tuple variable
tuVariable = ("Apple", "Banana", "Cherry")
print(type(tuVariable))
print(tuVariable)

#range variable
ranVariable = range(6)
print(type(ranVariable))
print(ranVariable)

#dict variable
diVariable = {"name" : "John", "age" : 36}
print(type(diVariable))
print(diVariable)

#set variable
setVariable = {"Apple", "Banana", "Cherry"}
print(type(setVariable))
print(setVariable)

#frozenset variable
frozenVariable = frozenset({"apple", "banana", "cherry"})
print(type(frozenVariable))
print(frozenVariable)

#bool variable
boVariable = True
print(type(boVariable))
print(boVariable)

#bytes variable
biteVariable = b"Hello"
print(type(biteVariable))
print(biteVariable)

#bytearray variable
bytearVariable = bytearray(5)
print(type(bytearVariable))
print(bytearVariable)

#memoryview variable
memoryVariable = memoryview(bytes(5))
print(type(memoryVariable))
print(memoryVariable)
<class 'str'>
Hello world
<class 'int'>
20
<class 'float'>
20.5
<class 'complex'>
1j
<class 'list'>
['Apple', 'Banana', 'Cherry']
<class 'tuple'>
('Apple', 'Banana', 'Cherry')
<class 'range'>
range(0, 6)
<class 'dict'>
{'name': 'John', 'age': 36}
<class 'set'>
{'Banana', 'Cherry', 'Apple'}
<class 'frozenset'>
frozenset({'apple', 'banana', 'cherry'})
<class 'bool'>
True
<class 'bytes'>
b'Hello'
<class 'bytearray'>
bytearray(b'\x00\x00\x00\x00\x00')
<class 'memoryview'>
<memory at 0x7eff61470dc8>