Copyright (c) Hyperion Entertainment and contributors.
AmigaOS Manual: Python Methods: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
| Line 58: | Line 58: | ||
== .islower() == |
== .islower() == |
||
<nowiki>object.islower()</nowiki> |
|||
== .isnumeric() == |
== .isnumeric() == |
||
== .isspace() == |
== .isspace() == |
||
Revision as of 18:00, 11 February 2021
Built-in Methods for Strings
.capitalize()
object.capitalize()
Capitalizes the first letter of the string object.
.center()
object.center(width, fillchar)
.count()
object.count(substring, start, end)
.decode()
object.decode(encoding, errors)
.encode()
object.encode(encoding, errors)
.endswith()
object.endswith(suffix, start, end)
.expandtabs()
object.expandtabs(tabsize)
.find()
object.find(string, start, end)
.index()
object.index(string, start, end)
.isalnum()
object.isalnum()
.isalpha()
object.isalpha()
.isdecimal()
object.isdecimal()
.isdigit()
object.isdigit()
Returns true if the string object contains only digits.
.islower()
object.islower()
.isnumeric()
.isspace()
.istitle()
.isupper()
.join()
.len()
object.len()
Returns the length of the string object.