pythin math.degrees(math.atan2(math.sqrt(elem_X ** 2 + elem_Y ** 2), elem_Z)) code example
Example 1: tangent python 3
import math
import random
#the tangent can be anything
variable = random.randint(6, 9)
#here we print the tangent with atan (tangent)
print(atan(variable))
Example 2: pi python
# import built in math module
import math
# Showing usage of pi function
print(math.pi)