Вы находитесь на странице: 1из 5

Built-in Functions Title Description

Title Description Python help() Invokes the built-in Help System

Python hex() Converts to Integer to Hexadecimal


Python abs() returns absolute value of a number

Python hash() returns hash value of an object


Python any() Checks if any Element of an Iterable is True

Python input() reads and returns a line of string


Python all() returns true when all elements in iterable is true

Python id() Returns Identify of an Object


Python ascii() Returns String Containing Printable Representation

Python isinstance() Checks if a Object is an Instance of Class


Python bin() converts integer to binary string

Python int() returns integer from a number or string


Python bool() Converts a Value to Boolean

Python issubclass() Checks if a Object is Subclass of a Class


Python bytearray() returns array of given byte size

Python iter() returns iterator for an object


Python callable() Checks if the Object is Callable

Python list() Function creates list in Python


Python bytes() returns immutable bytes object

Python locals() Returns dictionary of a current local symbol table


Python chr() Returns a Character (a string) from an Integer

Python len() Returns Length of an Object


Python compile() Returns a Python code object

Python max() returns largest element


Python classmethod() returns class method for given function

Python min() returns smallest element


Python complex() Creates a Complex Number

Python map() Applies Function and Returns a List


Python delattr() Deletes Attribute From the Object

Python next() Retrieves Next Element from Iterator


Python dict() Creates a Dictionary

Python memoryview() returns memory view of an argument


Python dir() Tries to Return Attributes of Object

Python object() Creates a Featureless Object


Python divmod() Returns a Tuple of Quotient and Remainder

Python oct() converts integer to octal


Python enumerate() Returns an Enumerate Object

Python ord() returns Unicode code point for Unicode character


Python staticmethod() creates static method from a function

Python open() Returns a File object


Python filter() constructs iterator from elements which are true

Python pow() returns x to the power of y


Python eval() Runs Python Code Within Program

Python print() Prints the Given Object


Python float() returns floating point number from number, string

Python property() returns a property attribute


Python format() returns formatted representation of a value

Python range() return sequence of integers between start and stop


Python frozenset() returns immutable frozenset object

Python repr() returns printable representation of an object


Python getattr() returns value of named attribute of an object

Python reversed() returns reversed iterator of a sequence


Python globals() returns dictionary of current global symbol table

Python round() rounds a floating point number to ndigits places.


Python exec() Executes Dynamically Created Program

Python set() returns a Python set


Python hasattr() returns whether object has named attribute
Title Description Title Description

Python setattr() sets value of an attribute of object Python dict() Creates a Dictionary

Python slice() creates a slice object specified by range() Python enumerate() Returns an Enumerate Object

Python sorted() returns sorted list from a given iterable Python filter() constructs iterator from elements which are true

Python str() returns informal representation of an object Python iter() returns iterator for an object

Python sum() Add items of an Iterable Python len() Returns Length of an Object

Python tuple() Function Creates a Tuple Python max() returns largest element

Python type() Returns Type of an Object Python min() returns smallest element

Python vars() Returns __dict__ attribute of a class Python map() Applies Function and Returns a List

Python zip() Returns an Iterator of Tuples Python sorted() returns sorted list from a given iterable

Python __import__() Advanced Function Called by import Python sum() Add items of an Iterable

Python super() Allow you to Refer Parent Class by super Python zip() Returns an Iterator of Tuples

Dictionary Methods List Methods

Title Description Title Description

Python Dictionary clear() Removes all Items Python List append() Add Single Element to The List

Python Dictionary copy() Returns Shallow Copy of a Dictionary Python List extend() Add Elements of a List to Another List

Python Dictionary Python List insert() Inserts Element to The List


fromkeys() creates dictionary from given sequence

Python List remove() Removes Element from the List


Python Dictionary get() Returns Value of The Key

Python List index() returns smallest index of element in list


Python Dictionary items() returns view of dictionary's (key, value) pair

Python List count() returns occurrences of element in a list


Python Dictionary keys() Returns View Object of All Keys

Python List pop() Removes Element at Given Index


Python Dictionary popitem() Returns & Removes Element From Dictionary

Python List reverse() Reverses a List


Python Dictionary
setdefault() Inserts Key With a Value if Key is not Present
Python List sort() sorts elements of a list

Python Dictionary pop() removes and returns element having given key
Python List copy() Returns Shallow Copy of a List

Python Dictionary values() returns view of all values in dictionary


Python List clear() Removes all Items from the List

Python Dictionary update() Updates the Dictionary


Python any() Checks if any Element of an Iterable is True

Python any() Checks if any Element of an Iterable is True


Python all() returns true when all elements in iterable is true

Python all() returns true when all elements in iterable is true


Python ascii() Returns String Containing Printable Representation

Returns String Containing Printable


Python ascii() Representation Python bool() Converts a Value to Boolean

Python bool() Converts a Value to Boolean Python enumerate() Returns an Enumerate Object
Title Description Title Description

Python filter() constructs iterator from elements which are true Python Set symmetric_difference() Returns Symmetric Difference

Python iter() returns iterator for an object Python Set


symmetric_difference_update() Updates Set With Symmetric Difference

Python list() Function creates list in Python


Python Set union() Returns Union of Sets

Python len() Returns Length of an Object


Python Set update() Add Elements to The Set.

Python max() returns largest element


Checks if any Element of an Iterable is
Python any() True
Python min() returns smallest element

returns true when all elements in


Python map() Applies Function and Returns a List Python all() iterable is true

Python reversed() returns reversed iterator of a sequence Returns String Containing Printable
Python ascii() Representation
Python slice() creates a slice object specified by range()
Python bool() Converts a Value to Boolean

Python sorted() returns sorted list from a given iterable


Python enumerate() Returns an Enumerate Object
Python sum() Add items of an Iterable
constructs iterator from elements which
Python filter() are true
Python zip() Returns an Iterator of Tuples

Python frozenset() returns immutable frozenset object


Set Methods
Python iter() returns iterator for an object

Title Description
Python len() Returns Length of an Object

Python Set remove() Removes Element from the Set Python max() returns largest element

Python Set add() adds element to a set Python min() returns smallest element

Python Set copy() Returns Shallow Copy of a Set Python map() Applies Function and Returns a List

Python Set clear() remove all elements from a set Python set() returns a Python set

Python Set difference() Returns Difference of Two Sets Python sorted() returns sorted list from a given iterable

Updates Calling Set With Intersection Python sum() Add items of an Iterable
Python Set difference_update() of Sets

Python zip() Returns an Iterator of Tuples


Python Set discard() Removes an Element from The Set

Returns Intersection of Two or More String Methods


Python Set intersection() Sets

Updates Calling Set With Intersection Title Description


Python Set intersection_update() of Sets

Python String capitalize() Converts first character to Capital Letter


Python Set isdisjoint() Checks Disjoint Sets

Python String center() Pads string with specified character


Python Set issubset() Checks if a Set is Subset of Another Set

Python String casefold() converts to casefolded strings


Checks if a Set is Superset of Another
Python Set issuperset() Set
Python String count() returns occurrences of substring in string

Python Set pop() Removes an Arbitrary Element


Python String endswith() Checks if String Ends with the Specified Suffix
Title Description Title Description

Python String expandtabs() Replaces Tab character With Spaces Python String replace() Replaces Substring Inside

Python String encode() returns encoded string of given string Python String rfind() Returns the Highest Index of Substring

Python String find() Returns the index of first occurrence of substring Python String rindex() Returns Highest Index of Substring

Python String format() formats string into nicer output Python String split() Splits String from Left

Python String index() Returns Index of Substring Python String rsplit() Splits String From Right

Python String isalnum() Checks Alphanumeric Character Python String splitlines() Splits String at Line Boundaries

Python String isalpha() Checks if All Characters are Alphabets Python String startswith() Checks if String Starts with the Specified String

Python String isdecimal() Checks Decimal Characters Python String title() Returns a Title Cased String

Python String isdigit() Checks Digit Characters Python String zfill() Returns a Copy of The String Padded With Zeros

Python String isidentifier() Checks for Valid Identifier Python String format_map() Formats the String Using Dictionary

Python String islower() Checks if all Alphabets in a String are Lowercase Python any() Checks if any Element of an Iterable is True

Python String isnumeric() Checks Numeric Characters Python all() returns true when all elements in iterable is true

Python String isprintable() Checks Printable Character Python ascii() Returns String Containing Printable Representation

Python String isspace() Checks Whitespace Characters Python bool() Converts a Value to Boolean

Python String istitle() Checks for Titlecased String Python bytearray() returns array of given byte size

Python String isupper() returns if all characters are uppercase characters Python bytes() returns immutable bytes object

Python String join() Returns a Concatenated String Python compile() Returns a Python code object

Python String ljust() returns left-justified string of given width Python complex() Creates a Complex Number

Python String rjust() returns right-justified string of given width Python enumerate() Returns an Enumerate Object

Python String lower() returns lowercased string Python filter() constructs iterator from elements which are true

Python String upper() returns uppercased string Python float() returns floating point number from number, string

Python String swapcase() swap uppercase characters to lowercase; vice versa Python input() reads and returns a line of string

Python String lstrip() Removes Leading Characters Python int() returns integer from a number or string

Python String rstrip() Removes Trailing Characters Python iter() returns iterator for an object

Python String strip() Removes Both Leading and Trailing Characters Python len() Returns Length of an Object

Python String partition() Returns a Tuple Python max() returns largest element

Python String maketrans() returns a translation table Python min() returns smallest element

Python String rpartition() Returns a Tuple Python map() Applies Function and Returns a List

Python String translate() returns mapped charactered string Python ord() returns Unicode code point for Unicode character
Title Description

Python reversed() returns reversed iterator of a sequence

Python slice() creates a slice object specified by range()

Python sorted() returns sorted list from a given iterable

Python sum() Add items of an Iterable

Python zip() Returns an Iterator of Tuples

Tuple Methods

Title Description

Python Tuple count() returns occurrences of element in a tuple

Python Tuple index() returns smallest index of element in tuple

Python any() Checks if any Element of an Iterable is True

Python all() returns true when all elements in iterable is true

Python ascii() Returns String Containing Printable Representation

Python bool() Converts a Value to Boolean

Python enumerate() Returns an Enumerate Object

Python filter() constructs iterator from elements which are true

Python iter() returns iterator for an object

Python len() Returns Length of an Object

Python max() returns largest element

Python min() returns smallest element

Python map() Applies Function and Returns a List

Python reversed() returns reversed iterator of a sequence

Python slice() creates a slice object specified by range()

Python sorted() returns sorted list from a given iterable

Python sum() Add items of an Iterable

Python tuple() Function Creates a Tuple

Python zip() Returns an Iterator of Tuples

Вам также может понравиться