import math side_list = ['opposite', 'adjacent', 'hypotenuse'] opposite = 0 adjacent = 0 hypotenuse = 0 # run code u_side = input('What side are you solving for? ') side_list.remove(u_side) print(side_list) if u_side != 'hypotenuse': # if u_side == 'opposite': # trig_func = math.cos # elif u_side == 'adjacent': # trig_func = math.sin # else: # trig_func = math.tan # numerator = int(input(f'What is the length of the {side_list[0]}? ')) # denominator = int(input(f'What is the length of the {side_list[1]}? ')) # angle = trig_func(numerator / denominator) # print(angle)