18 1 point Consider the following program x5 4 1 split xxso

18. (1 point) Consider the following program x=\"5 4 1\" . split() x-x.sort() try: print(len(x)) except: print (type (x)) After it is run, what is printed by this program? (A) list (B) NoneType (C) 3 (D) TypeError

Solution

Answer: B. NonType

Because SORT method of LIST does not return any value but reverse the given object from the list.

 18. (1 point) Consider the following program x=\

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site