ExampleEdit & Run
#import the cmath module
import cmath

#print the value of tau
print(cmath.tau)
copy
Output:
6.283185307179586 [Finished in 0.010555273853242397s]

The math.tau attribute holds the value of the mathematical constant Tau up to 15 decimal places. The Tau constant in math is equivalent to twice the value of Pi( π) i.e 2 * Pi.

Syntax:
cmath.tau
copy
ExampleEdit & Run
import cmath

print(cmath.tau)
print(2 * cmath.pi)
print(cmath.tau == (2 * cmath.pi))
copy
Output:
6.283185307179586 6.283185307179586 True [Finished in 0.010085785761475563s]