Skip to content

Commit 6244f27

Browse files
authored
Update StringMethods.md
1 parent 9af726b commit 6244f27

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Data_Structure_In_Python/String/StringMethods.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Following are the most common used method for strings are
1111
Example:
1212
```python
1313
text="hello"
14-
result=txt.capitalize()
14+
result=text.capitalize()
1515
print(result)
1616
#Result:Hello
1717
```
@@ -211,7 +211,7 @@ print(newstring)
211211
Example:
212212
```python
213213
mystring="is he is was he in too is"
214-
newstring=stat.replace('is','was' ,2)
214+
newstring=mystring.replace('is','was' ,2)
215215
print(newstring)
216216
#Result: "was he was was he in too is"
217217
```
@@ -265,7 +265,7 @@ number="63663"
265265
res=number.isdigit()
266266
print(res)
267267

268-
#result : Tries
268+
#result : True
269269
```
270270

271271
### Other some remaining methods

0 commit comments

Comments
 (0)