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

Commit f98a283

Browse files
committed
fomating and lint fix
1 parent 8067012 commit f98a283

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
---
22
Title: '.removesuffix()'
33
Description: 'Returns a copy of a string with the specified suffix removed, if present.'
4-
Subjects:
5-
- 'Code Foundations'
6-
- 'Computer Science'
7-
Tags:
8-
- 'Methods'
9-
- 'Strings'
10-
CatalogContent:
11-
- 'learn-python-3'
12-
- 'paths/computer-science'
4+
Subjects:
5+
- 'Code Foundations'
6+
- 'Computer Science'
7+
Tags:
8+
- 'Methods'
9+
- 'Strings'
10+
CatalogContent:
11+
- 'learn-python-3'
12+
- 'paths/computer-science'
1313
---
1414

1515
The **`str.removesuffix()`** method returns a new string with the specified suffix removed, if present. If the string does not end with the given suffix, the original string is returned unchanged. This method is case-sensitive and does not modify the original string.
1616

17-
## Syntax
17+
## Syntax
1818

19-
```pseudo
20-
string_name.removesuffix(suffix)
21-
```
19+
```pseudo
20+
string_name.removesuffix(suffix)
21+
```
2222

2323
**Parameters:**
2424

0 commit comments

Comments
 (0)