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
Top 50 OOPS Interview Questions & Answers
Apply For Job
Java Material
Python Material
PLSQL Material
.Net Material
Java Practice Programs
400 Java Programs
Write a Java program that takes five numbers as input to calculate and print the average of the numbers
Write a Java program to compare two numbers
Write a Java program and compute the sum of the digits of an integer
Write a Java program to display the system time
Write a Java Program to Find the sum of the digits of a number
How do you confirm if an object is iterable using code?
Write a python program to check two strings are Anagram or not
Write a Python Program to Check Prime Number.
Write a Python Program to Find LCM.
Write a Python program that accepts an integer (n) and computes the value of n+nn+nnn.
Java Quiz - 10
Java Quiz - 5
Java Quiz - 21
Java Quiz - 9
Java Quiz - 23