A common idiom in programming is sorting a list. Python makes this a very simple task. Python provides a built-in sorted() function that accepts an iterable type, and return a sorted list: 1. Standard Sorting First, try sorting a list: >>> l = [3, 2, 5 ,4, 7, 1] >>> sorted(l) [1, 2, 3, 4, [...]
 
My name is Ramesh Natarajan. I will be posting instruction guides, how-to, troubleshooting tips and tricks on Linux, database, hardware, security and web. My focus is to write articles that will either teach you or help you resolve a problem. Read more about