![New String Methods to Remove Prefixes and Suffixes in Python 3.9 | by Indhumathy Chelliah | Dev Genius New String Methods to Remove Prefixes and Suffixes in Python 3.9 | by Indhumathy Chelliah | Dev Genius](https://miro.medium.com/max/738/1*tIQF_kp8xlOziR2vzKQ70g.png)
New String Methods to Remove Prefixes and Suffixes in Python 3.9 | by Indhumathy Chelliah | Dev Genius
![Rodrigo 🐍📝 on Twitter: "Are you familiar with Python 🐍's `removeprefix` and `removesuffix` string methods? These 2 methods were introduced in Python 3.9. They let you remove the prefix (or suffix) of Rodrigo 🐍📝 on Twitter: "Are you familiar with Python 🐍's `removeprefix` and `removesuffix` string methods? These 2 methods were introduced in Python 3.9. They let you remove the prefix (or suffix) of](https://pbs.twimg.com/media/FGgAE6uXwAQB2Qn.jpg:large)
Rodrigo 🐍📝 on Twitter: "Are you familiar with Python 🐍's `removeprefix` and `removesuffix` string methods? These 2 methods were introduced in Python 3.9. They let you remove the prefix (or suffix) of
![Saurav Jain on Twitter: "💡 Python Tip 💡 In Python 3.9 or Greater, you can remove prefix or suffix of any string by using "removeprefix()" and "removesuffix()" function. 🔗 Code 👇 https://t.co/p5xtBlvvFn" / Twitter Saurav Jain on Twitter: "💡 Python Tip 💡 In Python 3.9 or Greater, you can remove prefix or suffix of any string by using "removeprefix()" and "removesuffix()" function. 🔗 Code 👇 https://t.co/p5xtBlvvFn" / Twitter](https://pbs.twimg.com/media/FBzTRAHVgAUnRV5.jpg:large)