python - Passing in variables into functions -
this code uses trigonometry in order find missing sides on triangle. works using sohcahtoa find these sides. problem code when try run code gives me invalid syntax when call user defined function: "get_method". please can tell wrong code , how solve consistent problem occurs in programmes. import math def get_method(question, method): print("lable right-angle triangle.") question = input("what trying find? type 'h' hypotenuse, 'a' adjacent or 'o' opposite.").lower().strip() method = "" if question == "h": opposite_verify = input("do have length of opposite?\n" "type 'yes' or 'no'").strip().lower() if opposite_verify == "yes": method = "sine" elif opposite_verify == "no": adjacent_verify = input("do have length of adjacent?\n" ...