Write a Python program to empty a variable without destroying it.

Write a Python program to empty a variable without destroying it.

1
2
3
4
5
6
7
8
n = 20
d = {"x":200}
l = [1,3,5]
t= (5,7,8)
print(type(n)())
print(type(d)())
print(type(l)())
print(type(t)())

Final output

Leave a Comment