#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
На этой странице сайта вы можете посмотреть видео онлайн Python for Beginners: 13. How to reverse a string in Python using while loop and slicing methods длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь TechCurate 16 Апрель 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 154 раз и оно понравилось 8 зрителям. Приятного просмотра!