4. Write a python program to arrange the list of number as in the output below in decreasing order.
The output is:
number_list = [22, 5, 76, 100, 12.3, 9]
Answer: The number_list arranged in increasing order: [100, 76, 22, 12.3, 9, 5]
Answer:
number_list = [22, 5, 76, 100, 12.3, 9] print("The number_list arranged in increasing order: ", (sorted(number_list, reverse=True)))
More Exercises:
Python String ExercisesMore Numpy Exercises:
Numpy String ExercisesMore Pandas Exercises:
Pandas Series ExercisesMore Tutorials:
Python Installation - Linux (Ubuntu)