Я новичок в Python и пытаюсь выяснить, как работает отступ, а не скобки.У меня проблема с elif:
"""This program calculates the area of a circle or triangle."""
print "Area Calculator is on."
option = raw_input("Enter C for Circle or T for Triangle: ")
if option == 'C': radius = float(raw_input("Enter the radius: "))
area = 3.14159*radius**2
print "The area of circle with radius %s is %s." % (radius, area)
elif option == 'T':
base = float(rawinput("Enter the base: "))
height = float(rawinput("Enter the height: "))
area2 = .5*base*height
print "The area of triangle with base %s and height %s is %s." % (base, height, area2)
else: print "ERROR"
Всякий раз, когда я пытаюсь отправить это, это дает мне недопустимую синтаксическую ошибку в elif.Я пытался посмотреть на разные темы по этому поводу, но те, у которых elif-отступ был слишком далеко, или забыли поставить двоеточие в конце elif.Что я должен сделать, чтобы это исправить?