sort function in Python
sort function in Python
from the name it is clear that it will sort in ascending or descending order. For Example -
- x = [4,51,5,6,5,1,478]
- x.sort()
- print(x)
sort function in Python
from the name it is clear that it will sort in ascending or descending order. For Example -
- x = [4,51,5,6,5,1,478]
- x.sort()
- print(x)
Comments
Post a Comment