import math
user = input("are you using sin")
if user == 'yes':
user_3 = input("which side is unknown")
if user_3 == 'opposite':
user_1= int(input("what is the hypotenuse"))
ang = float(input("what's your angle ?: "))
the_divided_num = float(180 / ang)
x = math.sin(math.pi / the_divided_num)
answer = (x *user_1)
print(f"this is your missing side is {answer}")
elif user_3 == 'hypotenuse':
user_4= int(input("what is the opposite "))
angle = float(input("what's your angle ?: "))
the_divided_num = float(180 / angle)
x_1 = math.sin(math.pi / the_divided_num)
answe = (x_1 /user_4)
print(f"this is your missing side is {answe}")
Traceback (most recent call last):
line 15, in <module>
answer = (x *user_1)
NameError: name 'user_1' is not defined
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}