Question PRG-PY-0052
MediumWhat is the output of this program?
a = [3, 1, 2]
b = sorted(a)
a.sort(reverse=True)
print(a, b, a.sort())
- A.
[1, 2, 3] [1, 2, 3] None
- B.
[3, 1, 2] [1, 2, 3] None
- C.
Sign up free to see the answer and a step-by-step explanation.