Archive | Python

Python Tips

Python

Custom sorting in python

A classic way in python to sort a list is by using the sort() function. For example if we have a list >>> x = [3, 8, 4, 2, 9] …we can use sort() like this… >>> x.sort() >>> x [2, 3, 4, 8, 9]   As you can see our list is now sorted. […]

Continue Reading 0