wap to input a number greater than 20 and print all even numbers in descending order
Answers
Answered by
0
Answer:
Python : Sort a List of numbers in Descending or Ascending Order | list. sort() vs sorted()
# List of numbers. listOfNum = [23, 45, 21, 45, 2, 5, 11, 50, 1, 67] ...
newList. ...
listOfNum. ...
[1, 2, 5, 11, 21, 23, 45, 45, 50, 67] ...
newList. ...
listOfNum. ...
[67, 50, 45, 45, 23, 21, 11, 5, 2, 1] ...
Initial List.
Similar questions