def myfun(): list1 = [2, 5, 6, 8, 1, 8, 9, 11] list1.sort(reverse=True) print(list1) if __name__=="__main__": myfun()
[11, 9, 8, 8, 6, 5, 2, 1]
Java Interview Questions
Python Interview Questions
Oracle Interview Questions
100 Most Asked Java Interview Questions and Answers
HR Interview Questions and Answers
Apply For Job
Java Material
Python Material
PLSQL Material
.Net Material
Java Practice Programs
400 Java Programs
Write a Java program to convert Celsius to Fahrenheit.
Write a Program to find second largest number in an array
Write a Program to Find largest and smallest number in an array in java
Write a Java program to compute the sum of the first 100 prime numbers
Write a Java Program to find Armstrong number
Write a Python program to display the first and last colors from the following list.
Write a Python Program to Make a Simple Calculator with 4 basic mathematical operations.
Write a python program to print most frequent letter in a string
Python Program to Replace all Occurrences of ‘a’ with $ in a String
Write a program to merging dictionaries
Java Quiz - 8
Java Quiz - 2
Java Quiz - 12
Java Quiz - 18
Java Quiz - 13