[go: up one dir, main page]

0% found this document useful (0 votes)
11 views2 pages

Single Quote

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views2 pages

Single Quote

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

\' Single Quote Binary Types: bytes, bytearray,

memoryview
\\ Backslash
None Type: NoneType
\n New Line
\r Carriage Return
import math
\t Tab
x = math.factorial(3)
\b Backspace
Function Description
ceil(x)Returns the smallest integer greater than
x = "awesome"
or equal to x.
copysign(x, y) Returns x with the sign of
def myfunc(): y
print("Python is " + x) fabs(x) Returns the absolute value of x
factorial(x) Returns the factorial of x
myfunc() floor(x) Returns the largest integer less
than or equal to x
output - Python is awesome
fmod(x, y) Returns the remainder when x is
x = "awesome"
divided by y
frexp(x) Returns the mantissa and
def myfunc(): exponent of x as the pair (m, e)
x = "fantastic" fsum(iterable) Returns an accurate
print("Python is " + x) floating point sum of values in the iterable
isfinite(x) Returns True if x is neither an
infinity nor a NaN (Not a Number)
myfunc()
isinf(x) Returns True if x is a positive or
negative infinity
print("Python is " + x) isnan(x) Returns True if x is a NaN
output - Python is fantastic ldexp(x, i) Returns x * (2**i)
Python is awesome
modf(x) Returns the fractional and integer
parts of x
text Type: str
trunc(x) Returns the truncated integer
Numeric Types: int, float, complex value of x
Sequence Types: list, tuple, range exp(x)Returns e**x
Mapping Type: dict expm1(x) Returns e**x - 1
Set Types: set, frozenset log(x[, b]) Returns the logarithm of x to the
base b (defaults to e)
Boolean Type: bool
log1p(x) Returns the natural logarithm of gamma(x) Returns the Gamma function at x
1+x
lgamma(x) Returns the natural logarithm of
log2(x) Returns the base-2 logarithm of x the absolute value of the Gamma function at x
log10(x) Returns the base-10 logarithm of pi Mathematical constant, the ratio of
x circumference of a circle to it's diameter
(3.14159...)
pow(x, y) Returns x raised to the power y
e mathematical constant e (2.71828...)
sqrt(x) Returns the square root of x
acos(x) Returns the arc cosine of x
asin(x) Returns the arc sine of x
atan(x) Returns the arc tangent of x
atan2(y, x) Returns atan(y / x)
cos(x) Returns the cosine of x
hypot(x, y) Returns the Euclidean norm,
sqrt(x*x + y*y)
sin(x) Returns the sine of x
tan(x) Returns the tangent of x
degrees(x) Converts angle x from radians to
degrees
radians(x) Converts angle x from degrees to
radians
acosh(x) Returns the inverse hyperbolic
cosine of x
asinh(x) Returns the inverse hyperbolic
sine of x
atanh(x) Returns the inverse hyperbolic
tangent of x
cosh(x) Returns the hyperbolic cosine of
x
sinh(x) Returns the hyperbolic cosine of
x
tanh(x) Returns the hyperbolic tangent of
x
erf(x) Returns the error function at x
erfc(x) Returns the complementary error
function at x

You might also like