How do you sort in python?



How do you sort in python?..

Answer / Jitendra Singh Saini

Sort a list in Python using the built-in sorted function or the sort method of lists. Example: `sorted(my_list)` and `my_list.sort()`. This is a duplicate question, but it's included here for completeness.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

Does python have inheritance?

1 Answers  


Whenever python exists why does all the memory is not de-allocated / freed when python exits?

1 Answers  


Is map faster than for loop python?

1 Answers  


What are disadvantages of python?

1 Answers  


Whenever python exits, why isn’t all the memory de-allocated?

1 Answers  


What is python mapping?

1 Answers  


What are the programming-language features of python?

1 Answers  


What ide to use for python?

1 Answers  


which statement is used to take a decision based on the comparison?

1 Answers  


What is pycharm used for?

1 Answers  


How does for loop and while loop differ in python and when do you choose to use them?

1 Answers  


Why is button parameter “command” executed when declared?

1 Answers  


Categories