Unpack the tuple into 4 variables
Write a program to unpack the following tuple into four variables and display each variable.
Given:
Expected output:
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 40
Solution:
need an explanation for this answer? contact us directly to get an explanation for this answer