Я пытаюсь создать программу для выполнения правила синусов, но получаю указанную выше ошибку, я проверил другие вопросы, но не могу
import math
PI = math.pi
x = raw_input ("To get length please enter 1, to get angle please enter 2 : ")
while x:
if x == "1":
print ("This is to find a length using the Sine Rule")
A= str(raw_input ("what is angle A? "))
a= str(raw_input ("what is length a? "))
B= str(raw_input ("what is angle B? "))
b = (a / math.sin((PI/180)*A)) * (math.sin((PI/180)*B))
print (' your answer is : ', b ,'cm')
raw_input ("press <enter> to end")
if x == "2":
print ("This is to find an angle using the Sine Rule")
A= float(raw_input ("what is angle A? "))
a= raw_input ("what is length a? ")
b= raw_input ("what is length b? ")
B = ( math.sin((PI/180)*A) / a) * b
print (' your answer is : ', B ,'degrees')
raw_input ("press <enter> to end")