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

Veröffentlicht am: 16 April 2022
auf dem Kanal: 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


Auf dieser Seite können Sie das Online-Video Python for Beginners: 13. How to reverse a string in Python using while loop and slicing methods mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer TechCurate 16 April 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 154 Mal angesehen und es wurde von 8 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!