0% found this document useful (0 votes)
0 views2 pages

Python Methods Reference En

The document provides a comprehensive reference for Python's built-in functions and various methods for data types including strings, lists, dictionaries, sets, tuples, and files. Each section lists the available methods and functions for the respective data types. This serves as a quick guide for Python developers to access method functionalities.

Uploaded by

romex55303
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views2 pages

Python Methods Reference En

The document provides a comprehensive reference for Python's built-in functions and various methods for data types including strings, lists, dictionaries, sets, tuples, and files. Each section lists the available methods and functions for the respective data types. This serves as a quick guide for Python developers to access method functionalities.

Uploaded by

romex55303
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Python Methods and Functions Reference

Built-in Functions
abs(), all(), any(), ascii(), bin(), bool(), bytearray(), bytes()
callable(), chr(), classmethod(), compile(), complex()
delattr(), dict(), dir(), divmod()
enumerate(), eval(), exec()
filter(), float(), format(), frozenset()
getattr(), globals()
hasattr(), hash(), help(), hex()
id(), input(), int(), isinstance(), issubclass(), iter()
len(), list(), locals()
map(), max(), memoryview(), min()
next()
object(), oct(), open(), ord()
pow(), print(), property()
range(), repr(), reversed(), round()
set(), setattr(), slice(), sorted(), staticmethod(), str(), sum(), super()
tuple(), type()
vars(), zip(), __import__()

String Methods (str)


capitalize(), casefold(), center(), count(), encode(), endswith()
expandtabs(), find(), format(), format_map(), index(), isalnum()
isalpha(), isascii(), isdecimal(), isdigit(), isidentifier()
islower(), isnumeric(), isprintable(), isspace(), istitle(), isupper()
join(), ljust(), lower(), lstrip(), maketrans(), partition()
replace(), rfind(), rindex(), rjust(), rpartition(), rsplit()
rstrip(), split(), splitlines(), startswith(), strip()
swapcase(), title(), translate(), upper(), zfill()

List Methods (list)


append(), clear(), copy(), count(), extend(), index()
insert(), pop(), remove(), reverse(), sort()

Dictionary Methods (dict)


clear(), copy(), fromkeys(), get(), items()
keys(), pop(), popitem(), setdefault(), update(), values()

Set Methods (set, frozenset)


add(), clear(), copy(), difference(), difference_update()
discard(), intersection(), intersection_update()
isdisjoint(), issubset(), issuperset()
pop(), remove(), symmetric_difference(), symmetric_difference_update()
union(), update()

Tuple Methods (tuple)


count(), index()

File Methods (file)


close(), detach(), fileno(), flush(), isatty()
read(), readable(), readline(), readlines()
seek(), seekable(), tell(), truncate()
write(), writable(), writelines()

You might also like