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))