Short the list in descending order in python
View All Python Programs Source Code list = [“keyboard”, “mouse”,”joystick”,”laptop”, “camera”] list.sort(reverse=True) print(list) Output [‘mouse’, ‘laptop’, ‘keyboard’, ‘joystick’, ‘camera’] View All Python Programs
Short the list in descending order in python Read More »