Python comes with a variety of built-in functions that are always available for use. Here's a list of some commonly used built-in functions:
Basic Operations:
abs(): Return the absolute value of a number.len(): Return the length (number of items) of an object.max(): Return the largest item in an iterable or the largest of two or more arguments.min(): Return the smallest item in an iterable or the smallest of two or more arguments.sum(): Return the sum of a 'start' value (default: 0) plus an iterable of numbers.round(): Round a number to a given precision in decimal digits.Type Conversion:
int(): Convert a number or string to an integer.float(): Convert a number or string to a floating point number.str(): Return a string version of the object.list(): Convert an iterable to a list.tuple(): Convert an iterable to a tuple.dict(): Create a new dictionary.set(): Return a new set object.Input/Output:
print(): Print objects to the text stream file.input(): Read a string from standard input.Iterable Operations:
sorted(): Return a new sorted list from the elements of any iterable.reversed(): Return a reverse iterator.enumerate(): Return an enumerate object.filter(): Construct an iterator from elements of iterable for which function returns true.map(): Apply function to every item of iterable and return a list of the results.zip(): Make an iterator that aggregates elements from each of the iterables.Character and String Operations:
chr(): Return the string representing a character whose Unicode code point is the integer.ord(): Return an integer representing the Unicode character.ascii(): Return a string representing an object.Mathematical Operations:
divmod(): Return a pair of numbers (a tuple) consisting of their quotient and remainder.pow(): Return base to the power exp.Object & Class Operations:
isinstance(): Return whether an object is an instance of a class or of a subclass thereof.issubclass(): Return whether class is a subclass (direct or indirect) of a specified class.type(): Return the type of an object.Others:
eval(): Evaluate the given source in the context of globals and locals.exec(): Execute the dynamically created Python program.id(): Return the identity of an object.globals(): Return a dictionary representing the current global symbol table.locals(): Return a dictionary representing the current local symbol table.help(): Invoke the built-in help system.This is just a subset of the built-in functions provided by Python. There are more, and you can always refer to the official Python documentation for a comprehensive list and detailed explanations.
mailkit selectize.js powerquery spring-4 grob path operating-system autoscaling inspect extended-choice-parameter