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 -

  1. x = [4,51,5,6,5,1,478] 
  2. x.sort() 
  3. print(x) 

Comments

Popular posts from this blog

Proassignmenthelp index 27

Proassignmenthelp index 28

Programmingshark index 19