Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
318 B
1
Indexable
Never
Write a program to unpack the following tuple into four variables and display each variable and 

count the occurrence of 20.

i/p: tuple1 = (10, 20, 30, 20)
o/p: tuple1 = (10, 20, 30, 40)
# Your code
print(a) # should print 10
print(b) # should print 20
print(c) # should print 30
print(d) # should print 20
Leave a Comment