0% found this document useful (0 votes)
2 views6 pages

Complete Python String List Tuple Dictionary Functions

This document provides a comprehensive overview of common Python functions for strings, lists, tuples, and dictionaries. Each function is defined with a brief description and an example syntax reference. The content serves as a quick reference guide for Python programming.

Uploaded by

faahan27
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)
2 views6 pages

Complete Python String List Tuple Dictionary Functions

This document provides a comprehensive overview of common Python functions for strings, lists, tuples, and dictionaries. Each function is defined with a brief description and an example syntax reference. The content serves as a quick reference guide for Python programming.

Uploaded by

faahan27
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

Complete Python Revision Notes: String, List,

Tuple & Dictionary Functions


String Functions
capitalize()
Definition: Common Python string function.
Example: Refer to syntax: capitalize()
casefold()
Definition: Common Python string function.
Example: Refer to syntax: casefold()
center()
Definition: Common Python string function.
Example: Refer to syntax: center()
count()
Definition: Common Python string function.
Example: Refer to syntax: count()
encode()
Definition: Common Python string function.
Example: Refer to syntax: encode()
endswith()
Definition: Common Python string function.
Example: Refer to syntax: endswith()
expandtabs()
Definition: Common Python string function.
Example: Refer to syntax: expandtabs()
find()
Definition: Common Python string function.
Example: Refer to syntax: find()
format()
Definition: Common Python string function.
Example: Refer to syntax: format()
index()
Definition: Common Python string function.
Example: Refer to syntax: index()
isalnum()
Definition: Common Python string function.
Example: Refer to syntax: isalnum()
isalpha()
Definition: Common Python string function.
Example: Refer to syntax: isalpha()
isascii()
Definition: Common Python string function.
Example: Refer to syntax: isascii()
isdecimal()
Definition: Common Python string function.
Example: Refer to syntax: isdecimal()
isdigit()
Definition: Common Python string function.
Example: Refer to syntax: isdigit()
isidentifier()
Definition: Common Python string function.
Example: Refer to syntax: isidentifier()
islower()
Definition: Common Python string function.
Example: Refer to syntax: islower()
isnumeric()
Definition: Common Python string function.
Example: Refer to syntax: isnumeric()
isprintable()
Definition: Common Python string function.
Example: Refer to syntax: isprintable()
isspace()
Definition: Common Python string function.
Example: Refer to syntax: isspace()
istitle()
Definition: Common Python string function.
Example: Refer to syntax: istitle()
isupper()
Definition: Common Python string function.
Example: Refer to syntax: isupper()
join()
Definition: Common Python string function.
Example: Refer to syntax: join()
ljust()
Definition: Common Python string function.
Example: Refer to syntax: ljust()
lower()
Definition: Common Python string function.
Example: Refer to syntax: lower()
lstrip()
Definition: Common Python string function.
Example: Refer to syntax: lstrip()
maketrans()
Definition: Common Python string function.
Example: Refer to syntax: maketrans()
partition()
Definition: Common Python string function.
Example: Refer to syntax: partition()
replace()
Definition: Common Python string function.
Example: Refer to syntax: replace()
rfind()
Definition: Common Python string function.
Example: Refer to syntax: rfind()
rindex()
Definition: Common Python string function.
Example: Refer to syntax: rindex()
rjust()
Definition: Common Python string function.
Example: Refer to syntax: rjust()
rpartition()
Definition: Common Python string function.
Example: Refer to syntax: rpartition()
rsplit()
Definition: Common Python string function.
Example: Refer to syntax: rsplit()
rstrip()
Definition: Common Python string function.
Example: Refer to syntax: rstrip()
split()
Definition: Common Python string function.
Example: Refer to syntax: split()
splitlines()
Definition: Common Python string function.
Example: Refer to syntax: splitlines()
startswith()
Definition: Common Python string function.
Example: Refer to syntax: startswith()
strip()
Definition: Common Python string function.
Example: Refer to syntax: strip()
swapcase()
Definition: Common Python string function.
Example: Refer to syntax: swapcase()
title()
Definition: Common Python string function.
Example: Refer to syntax: title()
translate()
Definition: Common Python string function.
Example: Refer to syntax: translate()
upper()
Definition: Common Python string function.
Example: Refer to syntax: upper()
zfill()
Definition: Common Python string function.
Example: Refer to syntax: zfill()
len()
Definition: Common Python string function.
Example: Refer to syntax: len()

List Functions
append()
Definition: Common Python list function.
Example: Refer to syntax: append()
clear()
Definition: Common Python list function.
Example: Refer to syntax: clear()
copy()
Definition: Common Python list function.
Example: Refer to syntax: copy()
count()
Definition: Common Python list function.
Example: Refer to syntax: count()
extend()
Definition: Common Python list function.
Example: Refer to syntax: extend()
index()
Definition: Common Python list function.
Example: Refer to syntax: index()
insert()
Definition: Common Python list function.
Example: Refer to syntax: insert()
pop()
Definition: Common Python list function.
Example: Refer to syntax: pop()
remove()
Definition: Common Python list function.
Example: Refer to syntax: remove()
reverse()
Definition: Common Python list function.
Example: Refer to syntax: reverse()
sort()
Definition: Common Python list function.
Example: Refer to syntax: sort()
len()
Definition: Common Python list function.
Example: Refer to syntax: len()
max()
Definition: Common Python list function.
Example: Refer to syntax: max()
min()
Definition: Common Python list function.
Example: Refer to syntax: min()
sum()
Definition: Common Python list function.
Example: Refer to syntax: sum()

Tuple Functions
count()
Definition: Common Python tuple function.
Example: Refer to syntax: count()
index()
Definition: Common Python tuple function.
Example: Refer to syntax: index()
len()
Definition: Common Python tuple function.
Example: Refer to syntax: len()
max()
Definition: Common Python tuple function.
Example: Refer to syntax: max()
min()
Definition: Common Python tuple function.
Example: Refer to syntax: min()
sum()
Definition: Common Python tuple function.
Example: Refer to syntax: sum()

Dictionary Functions
clear()
Definition: Common Python dictionary function.
Example: Refer to syntax: clear()
copy()
Definition: Common Python dictionary function.
Example: Refer to syntax: copy()
fromkeys()
Definition: Common Python dictionary function.
Example: Refer to syntax: fromkeys()
get()
Definition: Common Python dictionary function.
Example: Refer to syntax: get()
items()
Definition: Common Python dictionary function.
Example: Refer to syntax: items()
keys()
Definition: Common Python dictionary function.
Example: Refer to syntax: keys()
pop()
Definition: Common Python dictionary function.
Example: Refer to syntax: pop()
popitem()
Definition: Common Python dictionary function.
Example: Refer to syntax: popitem()
setdefault()
Definition: Common Python dictionary function.
Example: Refer to syntax: setdefault()
update()
Definition: Common Python dictionary function.
Example: Refer to syntax: update()
values()
Definition: Common Python dictionary function.
Example: Refer to syntax: values()
len()
Definition: Common Python dictionary function.
Example: Refer to syntax: len()

You might also like