Unpacking tuples

Question

Predict the output of the code:

teams = (“MI”, “CSK”, “RCB”)

(blue, yellow, red) = teams

print(blue)
print(yellow)
print(red)

in progress 1
YashikaKhurana 55 years 1 Answer 698 views Master 0

Answer ( 1 )

  1. The output will be:
    MI
    CSK
    RCB

Leave an answer

Browse
Browse