Job Opening for Tester of Web Apps at Moolya >>Could you spot this? This is intentional!
Like!

Performing sorting on sub strings in Python 3.x using “key” parameter

sorted() and list.sort() are very useful inbuilt Python functions . They get even more powerful with the “key” parameter The key parameter basically allows us to call either another function or some logic, the outcome of which forms the basis of our sorting. The return value of the key parameter will be used to decide the sort order. Lets through talk an actual example –  Lets say we are given an input list of names of great personalities from history and we want to sort the names based on the...

Read more...

Share |

Published By: The Testing Planet - Monday, 6 August