31 ESSENTIAL Python String Methods
Patrick Loeber Patrick Loeber
266K subscribers
81,081 views
0

 Published On Dec 19, 2021

Strings are an essential data type in Python that are used in nearly every application. In this tutorial we learn about the 31 most important built-in string methods.

Get my Free NumPy Handbook:
https://www.python-engineer.com/numpy...

✅ Write cleaner code with Sourcery, instant refactoring suggestions in VS Code & PyCharm: https://sourcery.ai/?utm_source=youtu... *

⭐ Join Our Discord :   / discord  

📓 ML Notebooks available on Patreon:
  / patrickloeber  

If you enjoyed this video, please subscribe to the channel:
▶️ :    / @patloeber  

~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

🖥️ Website: https://www.python-engineer.com
🐦 Twitter -   / patloeber  
✉️ Newsletter - https://www.python-engineer.com/newsl...
📸 Instagram -   / patloeber  
🦾 Discord:   / discord  
▶️ Subscribe:    / @patloeber  

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅿 Patreon -   / patrickloeber  

#Python

Timeline:
00:00 - Intro
00:18 - 1. Slicing
00:40 - 2. strip()
02:10 - 3./4. lstrip() and rstrip()
02:35 - 5./6. removeprefix() and removesuffix()
03:16 - 7. replace()
03:37 - 8. re.sub()
04:25 - 9. split()
05:02 - 10. rsplit()
05:24 - 11. join()
05:50 - 12./13./14. upper(), lower(), capitalize()
06:07 - 15./16. islower() and isupper()
06:25 - 17./18./19. isalpha(), isnumeric(), isalnum()
07:05 - 20. count()
07:22 - 21. find()
08:07 - 22. rfind()
08:20 - 23./24. startswith() and endswith()
08:35 - 25. partition()
09:04 - 26./27./28 center(), ljust(), rjust()
09:45 - 29. f-Strings
10:26 - 30. swapcase()
10:40 - 31. zfill()

----------------------------------------------------------------------------------------------------------
* This is an affiliate link. By clicking on it you will not have any additional costs, instead you will support me and my project. Thank you so much for the support! 🙏

show more

Share/Embed