getting a sorted copy of a list is using the sorted function : Sorted : Buildin Function PYTHON TUTORIALS


PYTHON TUTORIALS » Buildin Function » Sorted »

 

getting a sorted copy of a list is using the sorted function


x = [462179]
y = sorted(x)
print x
print y

print sorted([324150])             # More iteration contexts



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Buildin Function
» Sorted