In [17]:
#string varible
stringVariable = "Hello World"
print(type(stringVariable))
print(stringVariable)

print()

#integer variable
integerVariable = 20
print(type(integerVariable))
print(integerVariable)

print()

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

print()

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

print()

#list variable
listVariable = ["apple", "banana", "cherry"]
print(type(listVariable))
print(listVariable)

print()

#tuple variable
tupleVariable = ("apple", "banana", "cherry")
print(type(tupleVariable))
print(tupleVariable)

print()

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

print()

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

print()

#set variable
setVariable = {"apple", "banana", "cherry"}
print(type(setVariable))
print(setVariable)

print ()

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

print ()

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

print ()

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

print ()

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

print ()

#memoryview variable
memoryviewVariable = memoryview(bytes(5))
print(type(memoryviewVariable))
print(memoryviewVariable)
<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({'banana', 'cherry', 'apple'})

<class 'bool'>
True

<class 'bytes'>
b'Hello'

<class 'bytearray'>
bytearray(b'\x00\x00\x00\x00\x00')

<class 'memoryview'>
<memory at 0x7f2c9bc44dc8>
In [ ]: