about 9 years ago
Hi All,
In programming world, we have to perform some basic operation on list or tuple but in python , it is easy to perform any operation on list or tuple. for example:-
If you have a number tuple/list like
then you can sort this list by any row like below code , in which data is sorted in ascending order ( for row 1).
if you run above code you get:-
If you want to sort in descending order :-
Can you help out the community by solving one of the following Web Development problems?
Do activity (Answer, Blog) > Earn Rep Points > Improve Rank > Get more opportunities to work and get paid!
For more topics, questions and answers, please visit the Tech Q&A page.
0 Comment(s)