None. A function such as sorted() gives back a new list instead.
nums = [3, 1, 2]
a = nums.sort()
b = sorted(nums, reverse=True)
c = nums.append(4)
Which of these expressions are True after the code has run? Choose every correct option.One or more options are correct. Tick all the correct ones: a wrong option costs marks, and a part-right answer earns part of the marks.
Log in to join the discussion.
Loading…