Python Tutorial - How to print words in Ascending or Descending order in PYTHON

Pubblicato il: 02 ottobre 2017
sul canale di: Appanna Damu
1,165
8

Hi everyone, In this video am going to explain How to print words in ascending order and descending order,
Lets have few words in list
lets use in built function to sort words
sort() method by default , will act as ascending order
lets print the words,
lets run the code,
we got output in ascending order of given words,
if you want to print words in descending order , then use reverse() method
lets use print statement to print words in descending orders,
lets run the code,
now we got descending order of words in output,

Thank you for watching this video








l=['java','python','sql']
l.sort()
print (l)
l.reverse()
print (l)


In questa pagina del sito puoi guardare il video online Python Tutorial - How to print words in Ascending or Descending order in PYTHON della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Appanna Damu 02 ottobre 2017, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,165 volte e gli è piaciuto 8 spettatori. Buona visione!