?
What will be the output of the following Python code?
What will be the output of the following Python code?
a=["Apple","Ball","Cobra"]
a.sort(key=len)
print(a)
a=["Apple","Ball","Cobra"]
a.sort(key=len)
print(a)
Join the Discussion
Login to post a comment or share your explanation.
Login