Which one of the lines should you put in the snippet below to match the expected output?

Which one of the lines should you put in the snippet below to match the expected output?

Expected output:

Code:

A . sorted(list)
B . sort(list)
C . list.sort()
D . list.sorted()

Answer: C

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments