A new sorted list that leaves the original alone

Write code · Basic · §3.4 Sorting and summarizing

Leave a as it is, and store in ranked a new list that has the numbers of a sorted from largest to smallest. The last two lines print a and ranked.

Starter code

a = [40, 70, 90, 60]
# Write your code here
print(a)
print(ranked)

Solve this problem in your browser

Python runs in your browser and checks your answer right away. Hints and the answer are on the problem page.