Copyright (c) Hyperion Entertainment and contributors.

AmigaOS Manual: Python Methods: Difference between revisions

From AmigaOS Documentation Wiki
Jump to navigation Jump to search
Content deleted Content added
Line 20: Line 20:
== .isdigit() ==
== .isdigit() ==


<nowiki>object.isdigit()</nowiki>
Returns true if string contains only digits.

Returns true if the string '''object''' contains only digits.


== .islower() ==
== .islower() ==

Revision as of 17:48, 11 February 2021

Built-in Methods for Strings

.capitalize()

object.capitalize()

Capitalizes the first letter of a string object.

.center()

.count()

.decode()

.encode()

.endswith()

.expandtabs()

.find()

.index()

.isalnum()

.isalpha()

.isdecimal()

.isdigit()

object.isdigit()

Returns true if the string object contains only digits.

.islower()

.isnumeric()

.isspace()

.istitle()

.isupper()

.join()

.len()

Returns the length of the string.

.ljust()

.lower()

.lstrip()

.maketrans()

.max()

.min()

.replace()

.rfind()

.rindex()

.rjust()

.rstrip()

.split()

.splitlines()

.startswith()

.strip()

.swapcase()

.title()

.translate()

.upper()

.zfill()

Built-in Methods for Lists

.append()

.count()

.extend()

.index()

.insert()

.pop()

.remove()

.reverse()

.sort()

Built-in Methods for Dictionaries

.clear()

.copy()

.fromkeys()

.get()

.has_key()

.items()

.keys()

.setdefault()

.update()

.values()