Question PRG-PY-0072
HardWhat is the output of this program?
print(sorted({3: "c", 1: "a", 2: "b"}.items(), key=lambda kv: kv[1], reverse=True), max("apple", "Banana", key=str.lower))
- A.
[(3, 'c'), (2, 'b'), (1, 'a')] apple
- B.
[(1, 'a'), (2, 'b'), (3, 'c')] apple
- C.
Sign up free to see the answer and a step-by-step explanation.