Question 7
Back to Exercise
The program below stops with an error. Which statement correctly describes the problem?
scores = (72, 85)
scores = scores + 91
print(scores)
- A It prints (72, 85, 91)
- B It prints (163, 176)
- C TypeError: a tuple can only be concatenated with another tuple; write scores + (91,) Correct
- D AttributeError
Correct Answer: Option C
Wrap the new item in a one-item tuple.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!