Python for Beginners: 13. How to reverse a string in Python using while loop and slicing methods

Pubblicato il: 16 aprile 2022
sul canale di: TechCurate
154
8

#Python #Programming #Beginners #Introduction #whileloop #example #string #reverse #slicing

About this video:
In this video, we implement two different versions of while-loop to output an input string in reverse order (using positive and negative indexing).

Consider this tutorial video as additional exercise to practice while-loop. However, keep in mind that there are other ways to achieve this. For example, there is an easier way to get the reverse of a sequence that does not require a use of while-loop. I will discuss this third and the easiest method after presenting two method that involve while loops. So, please watch the full video to find the bonus method that can be used to easily reverse an input data.

Please don’t forget to like share and subscribe to the channel.

Timestamps:
00:00 Welcome/ Introduction
02:15 using positive indexing with while loop
06:15 using negative indexing with while loop
08:06 using slicing technique
10:42 Recap/ Summarization


In questa pagina del sito puoi guardare il video online Python for Beginners: 13. How to reverse a string in Python using while loop and slicing methods della durata di ore minuti seconda in buona qualità , che l'utente ha caricato TechCurate 16 aprile 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 154 volte e gli è piaciuto 8 spettatori. Buona visione!