Python / Q&A · May 1, 2021 0

Python Built-In Functions

Function Description
abs(): Returns the absolute value of a number
bool(): Returns the boolean value of the specified object
chr(): Returns a character from the specified Unicode code.
eval(): Evaluates and executes an expression
exec(): Executes the specified code (or object)
float(): Returns a floating point number
input(): Allowing user input
int(): Returns an integer number
len(): Returns the length of an object
list(): Returns a list
max(): Returns the biggest item in an iterable
min(): Returns the smallest item in an iterable
next(): Returns the next item in an iterable
pow(): Returns the value of x to the power of y
print(): Prints to the standard output device
range(): Returns a sequence of numbers, starting from 0 and increments by 1
round(): Rounds a numbers
str(): Returns a string object
tuple(): Returns a tuple