In [2]:
#string variable
strvariable = "Hello world" 
print(type(strvariable))
print(strvariable)

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

#float variable
print()
flovariable = 20.5
print(type(flovariable))
print(intvariable)

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

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

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

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

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

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

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

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

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

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

#memoryview variable
print()
memvariable = memoryview(bytes(5))
print(type(memvariable))
print(memvariable)
<class 'str'>
Hello world

<class 'int'>
20

<class 'float'>
20

<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'>
{'Apple', 'Cherry', 'Banana'}

<class 'frozenset'>
frozenset({'apple', 'cherry', 'banana'})

<class 'bool'>
True

<class 'bytes'>
b'Hello'

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

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