What will be the values of a and b after executing the following statement?

a, b = (10, 20)
print(a, b)
                        

Options

  • A. 10 10
  • B. 20 10
  • C. 10 20
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

C. 10 20

Detailed Explanation

Explanation: Tuple unpacking assigns 10 to a and 20 to b.