Checkpoint 11.10.1.
What is printed by the following statements:
s = "ball"
r = ""
for item in s:
r = item.upper() + r
print(r)
-
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.
