Google News
logo
Python - Interview Questions
Write a sorting algorithm for a numerical dataset in Python.
The following code can be used to sort a list in Python:
 
list = ["1", "4", "0", "6", "9"]
list = [int(i) for i in list]
list.sort()
print (list)
Advertisement