You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Python Tutorial/Strings.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -240,7 +240,8 @@ print(S)
240
240
|endswith() |Python string endswith() function returns True if the string ends with the given suffix, otherwise it returns False. |
241
241
|capitalize() |Python String capitalize() function returns the capitalized version of the string. |
242
242
|center() |Python string center() function returns a centered string of specified size. |
243
-
|casefold() |Python string casefold() function returns a casefolded copy of the string. This function is used to perform case-insensitive |||string comparison. |
243
+
|casefold() |Python string casefold() function returns a casefolded copy of the string. This function is used to perform case-insensitive |||string comparison.|
244
244
|expandtabs() |Python string expandtabs() function returns a new string with tab characters (\t) replaced with one or more whitespaces. |
245
245
|index() |Python String index() function returns the lowest index where the specified substring is found. |
246
-
|__contains__() |Python String class has __contains__() function that we can use to check if it contains another string or not. We can also use |||“in” operator to perform this check. |
246
+
|__contains__()|Python String class has __contains__() function that we can use to check if it contains another string or not. We can also use ||| “in” operator to perform this check. |
0 commit comments