Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

difference between sort and sorted

#sort vs sorted
#sorted(sequence)
'''sorted() method  arrenges sequence either in ascending order or in
descending order also it can return the sorted sequence,with no problem
to original sequence .'''
# list.sort()
'''sort() function is identical to sorted, unlike sorted it do not return
and only applicable as method of list and only used with and by list.
unlike sorted() it alters original sequence.'''

Comment

PREVIOUS NEXT
Code Example
Python :: media django 
Python :: python check string case insensitive 
Python :: tkinter input box 
Python :: drop rows with null date in pandas 
Python :: python get last key in dict 
Python :: how to make random colors in python turtle 
Python :: pip install vlc 
Python :: set select group of columns to numeric pandas 
Python :: python difference between consecutive element in list 
Python :: Network.py socket 
Python :: python pandas series to dataframe 
Python :: Multiple Box Plot using Seaborn 
Python :: NumPy flip Example 
Python :: setting a condition for perfect square in python 
Python :: AdaBoost in Python 
Python :: flask db migrate 
Python :: pandas to excel add another sheet in existing excel file 
Python :: python get day month year 
Python :: string to datetime python 
Python :: what is cleaned data in django 
Python :: print () 
Python :: python close browser 
Python :: encryption python 
Python :: where to import kivy builder 
Python :: how to add 30 minutes in datetime column in pandas 
Python :: return max repeated value in list 
Python :: show all columns pandas jupyter notebook 
Python :: Import CSV Files into R Using fread() method 
Python :: python textbox 
Python :: python pil to greyscale 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =