Skip to content
This repository was archived by the owner on Feb 27, 2026. It is now read-only.

Commit 7f8adad

Browse files
committed
Create codebyte section
1 parent c51e81d commit 7f8adad

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

content/python/concepts/strings/terms/removesuffix/removesuffix.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,18 @@ Here's the output:
6464
```
6565
And when I silently snuck up on my mom, I jumped up and exclaimed 'BOO!'
6666
```
67+
## Codebyte
6768

69+
```codebyte/python 3
70+
famoussaying1 = "For Narnia and for Aslan!!! (Peter, The Lion, The Witch, and The Wardrobe)"
71+
famoussaying2 = "You were my brother Anakin! I loved you! (Obi Wan, Revenge of the Sith)"
72+
73+
quote1 = famoussaying1.removesuffix("Aslan")
74+
quote2 = famoussaying2.removesuffix("I loved you!")
75+
76+
print(quote1)
77+
print(quote2)
78+
```
6879

6980

7081

0 commit comments

Comments
 (0)