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 32: Line 32:


== .find() ==
== .find() ==

<nowiki>object.find(search, start, end)</nowiki>

== .index() ==
== .index() ==
== .isalnum() ==
== .isalnum() ==

Revision as of 17:56, 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(search, start, end)

.index()

.isalnum()

.isalpha()

.isdecimal()

.isdigit()

object.isdigit()

Returns true if the string object contains only digits.

.islower()

.isnumeric()

.isspace()

.istitle()

.isupper()

.join()

.len()

object.len()

Returns the length of the string object.

.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()