---
title: "Comment by Aagam Sheth on \"Python 3.9: All You need to know\" | Hashnode"
description: "I wonder what will be the output for the following : &quot;WorldHelloWorld&quot;.removesuffix(&quot;World&quot;) &quot;WorldHelloWorld&quot;.removeprefix(&quot;"
url: "https://hashnode.com/posts/python-39-all-you-need-to-know/5f604a0f61ae5e025d85b282/comment/5ff1c4be786e5b71c88afdff"
---

[Discussion](https://hashnode.com/posts/python-39-all-you-need-to-know/5f604a0f61ae5e025d85b282)

Comment [Python 3.9: All You need to know](https://hashnode.com/posts/python-39-all-you-need-to-know/5f604a0f61ae5e025d85b282)

[Aagam Sheth](https://hashnode.com/@AagamSheth)

[Jan 3, 2021](https://hashnode.com/posts/python-39-all-you-need-to-know/5f604a0f61ae5e025d85b282/comment/5ff1c4be786e5b71c88afdff)

I wonder what will be the output for the following :

1.  `"WorldHelloWorld".removesuffix("World")`
2.  `"WorldHelloWorld".removeprefix("World")`

Great article.
