0
What is the output of the following Python code?
w = ["bb", "a", "ccc", "dd"]
print(sorted(w, key=len, reverse=True))- A['a', 'bb', 'dd', 'ccc']
- B['ccc', 'dd', 'bb', 'a']
- C['ccc', 'bb', 'dd', 'a']
- D['ccc', 'bb', 'a', 'dd']
Correct answer: C
What is the output of the following Python code?
w = ["bb", "a", "ccc", "dd"]
print(sorted(w, key=len, reverse=True))