python
[Python] Sort a list
mylist = [900, 20, 300, 5, 90]
mylist.sort()
for x in mylist:
print(x)
Output
5
20
90
300
900
20
90
300
900
Was this helpful?
Similar Posts
- Sort list and dictionary in python
- Sort a dictionary by value in Python
- Python Sort String: Quick and Easy Guide
- Sort a DataFrame by rows and columns in Pandas
- Create a flat list from list of lists in Python
- Check if a list exists in a list of lists Python
- Convert a List of Strings to List of Integers in Python