Python Programming: How to use string slicing to swap the first and second halves of a string

Опубликовано: 15 Октябрь 2024
на канале: WIBYTE
160
4

In this video, we see how we can use string slicing to swap the two halves of a string. In the process, we look also at the int() function.

1. Introduction -    • Python Programming: Secret Messages p...  
2. How to index strings with positive and negative numbers -    • Python Programming| How to index stri...  
3. String slicing: start, stop, step size in string slicing, with examples -    • Python Programming| String slicing: s...  
4. String slicing and plus operator to jumble even and odd letters -    • Python Programming| String slicing an...  
5. Modulo operator to determine even or odd string length -   • Python Programming|  Modulo operator ...  
6. What is the return statement in context of Python functions? -    • Python Programming| What is the retur...  
7. How to slice strings with a negative step size? -    • Python Programming| How to slice stri...  
8. How to use string slicing to reverse a given string? -    • Python Programming| How to use string...  
9. Split() method and reverse function to reverse every word -    • Python Programming| How to use split(...  
10. How to use string slicing to swap the first and second halves of a string -    • Python Programming: How to use string...  
11. How to decode the encoded messages in the Secret Messages activity -    • Python Programming: How to decode the...  
12. A bonus encoding and decoding — swap middle and reverse combined -    • Python Programming: A bonus encoding ...  



(www.wibyte.in)