MSK Technologies

Home
Practice Programs
Java Programs Python Programs Java Quiz
Pages
Python Java Material PLSQL Material
Search A Job

Write a Python program sort a list in descending order

  1. Home
  2. Python Programs

Write a Python program sort a list in descending order

Write a Python program sort a list in descending order

Program

def myfun():
    list1 = [2, 5, 6, 8, 1, 8, 9, 11]
    list1.sort(reverse=True)
    print(list1)
            
if __name__=="__main__":
    myfun()


Output:

[11, 9, 8, 8, 6, 5, 2, 1]



More Questions


19 . Write a Python program sort a list in descending order
20 . Python Program to Replace all Occurrences of ‘a’ with $ in a String
21 . Write a Python program to remove duplicates from a list
22 . Write a Python program to count number of vowels in the given string
23 . Write a Python program to check whether a character is an alphabet or not
24 . Write a Python program to count number of digits in an integer
25 . Write a Python program to print fibonacci series
26 . Write a Python program to print reverse number
27 . Write a Python Program to print Palindrome numbers from 1 to 100
28 . Write a Python Program to find the factorial of a number using recursion
29 . Write a Python Program to check armstrong number of n digits


Interview Questions

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 The Job

Apply For Job

Java Material

Python Material

PLSQL Material

.Net Material

Java Practice Programs

400 Java Programs

Java Practice 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

Python Practice Programs

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

Java Quiz - 10

Java Quiz - 5

Java Quiz - 21

Java Quiz - 9

Java Quiz - 23

Courses
Java Python PLSQL .Net ADO.Net About Us
Quick Links
Daily Use English Sentences Daily General Knowledge General Knowledge Latest Update Inventions and Inventors జనరల్ నాలెడ్జ్ General Knowledge Spoken English Spoken Hindi GK Hindi Telugu Facts Unknown Facts Psychology Facts Motivation Quotes విటమిన్ - సి,డి,ఇ,కె Android
Spiritual
రాధాకృష్ణ భగవద్గీత Motivation Quotes Slokas Talapatra Nidhi ఆధ్యాత్మిక భక్తి ప్రపంచం Sadhguru Sai Motivation Quotes గౌతమ బుద్ధుడు Bhagavad Gita Quotes
Newsletter

Dolor amet sit justo amet elitr clita ipsum elitr est.

© sateeshm, All Right Reserved. Designed By sateeshm
Home Help FQAs