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.expm1() MethodLearn what Python's math.expm1() returns, how to call it, and why it can preserve precision near zero.Python Math.fabs() MethodThis article discusses Python's Math.fabs() method. We use this method to return the absolute value of a number in float.Python math.factorial() FunctionLearn how Python's math.factorial() function calculates factorials, which inputs it accepts, and how to use it for permutations.Python math.floor() FunctionLearn how Python's math.floor() function rounds values down and how it differs from ceil(), int(), and floor division.Python Math.fmod() MethodThis article discusses Python's Math.fmod() method. We use this method to find the remainder after dividing the two given numbers.Python math.frexp() MethodThe math.frexp() is an in-built Python function used to find mantissa and exponent of a number.Python math.fsum() MethodThe math.fsum() is an in-built Python function used to find the sum of multiple entries.Python math.gamma() FunctionLearn how Python's math.gamma() function calculates gamma values, relates to factorials, and handles unsupported inputs.Python math.gcd() FunctionLearn how to use Python's math.gcd() function with one, two, or multiple integers, user input, and invalid values.Python math.hypot() MethodThe math.hypot() is an in-built Python function used to calculate the hypotenuse of a right triangle.Python math.isclose() MethodThe math.isclose() is an in-built Python function used to check whether two numbers are close to each other or not.Python math.isfinite() MethodThe math.isfinite() is an in-built python function used to check whether a number is infinite or not.Python math.isinf() MethodThe math.isinf() is an in-built Python function used to check if a number is infinite or not.Python math.isnan() MethodThe math.isnan() is an in-built Python function used to check if a value is a valid number or not.Python math.ldexp() MethodThe math.ldexp() is an in-built Python function used to convert mantissa and exponent into a number.Python math.lgamma() MethodThe math.lgamma() method calculates the natural logarithm gamma value for a non-negative number.Python math.log() MethodThe math.log() method calculates the natural logarithm of a number.Python math.log10() MethodThe math.log10() method calculates the logarithm to the base of 10 of a number.Python math.log1p() MethodThe math.log1p() method calculates the natural logarithm of (number + 1).Python math.log2() FunctionLearn how Python's math.log2() function calculates base-2 logarithms and handles common inputs.Python math.modf() MethodThe math.modf() method breaks down a float number into two components.Python math.nan AttributeThis article discusses the math.nan attribute that represents a not a number value.Python math.pi AttributeThe math.pi attribute represents the mathematical pi or π.Python math.pow() MethodThe math.pow() is an in-built Python function used to find a number raised to the power of another number.