Example 1 · level 1
What is the output of the following program?
- 10 [20, 30, 40] 50
- 10 20 30 40 50
- 10 [20, 30, 40, 50] 50
- 10 [] 50
Show solution
- Tuple of five integers.
- Unpack first to a, last to b, middle to list mid.
- Print a, mid, b.
Answer: 10 [20, 30, 40] 50