Checkpoint 9.11.1.
- Ball
- Each item is converted to upper case before concatenation.
- BALL
- Each character is converted to upper case but the order is wrong.
- LLAB
- Yes, the order is reversed due to the order of the concatenation.
What is printed by the following statements:
s = "ball"
r = ""
for item in s:
r = item.upper() + r
print(r)