Find a reference entry

Python Functions

Collection of Python Functions and Methods

Reference entries

Collection of Python Functions and Methods

__COUNT__ entries on this page

Python math.radians() MethodThe math.radians() is an in-built Python function used to find an angle in radians.Python math.sin() MethodThe math.sin() is an in-built Python function used to find the sine of a number.Python math.sinh() MethodThe math.sinh() is an in-built Python function used to find the hyperbolic sine of a number.Python math.sqrt() MethodThe math.sqrt() is an in-built Python function used to find the square root of a number.Python math.tan() MethodThe math.tan() is an in-built Python function used to find the tangent of a number.Python math.tanh() MethodThe math.tanh() is an in-built Python function used to find the hyperbolic tangent of a number.Python math.trunc() FunctionLearn how Python's math.trunc() function truncates numbers toward zero and how to recognize unsupported inputs.Python os.abort() FunctionLearn how Python's os.abort() function raises SIGABRT and terminates the current process, how to call it directly or conditionally, and why it skips normal cleanup.Python os.access() MethodThe os.access() method is an in-built Python function used to check if the user has the access to a specified path.Python os.chdir() MethodThe os.chdir() method is an in-built Python function used to change the current in-use directory to another specified path.Python os.chmod() MethodThe os.chmod() is an in-built Python function used to change any path's mode to a numeric one.Python os.close() MethodThe os.close() method in Python closes a file descriptor.Python os.closerange() MethodThe os.closerange() method is an in-built Python function used to close all the file descriptors in a specified range.Python os.cpu_count() MethodThis article discusses the cpu_count() method from the os module. The os.cpu_count() method returns the number of CPUs in a system.Python os.device_encoding() MethodThe os.device_encoding() method returns the device encoding of a file descriptor associated with a terminal.Python os.dup() MethodThe os.dup() method duplicates a file descriptor.Python os.dup2() MethodThe os.dup2() method copies a file descriptor to another file descriptor and returns the new file descriptor.Python os.environ() MethodThe os.environ() returns a dictionary of all the environment variables.Python os.error() MethodThe os.error() is an in-built Python function used to handle I/O errors.Python os.execl() MethodThe os.execl() is an in-built Python function used to execute a program or a function.Python os.fdopen() MethodThe os.fdopen() is an in-built Python function used to open a specified file and perform some functions on it.Python os.fsdecode() MethodThe os.fsdecode() is an in-built Python function used to decode a specified file path.Python os.fsencode() MethodThis article discusses the os.fsencode() method. The os.fsencode() method encodes a filename.Python os.fspath() MethodThe os.fspath() method returns the file system representation of the path.