三角形の3つの角度または辺を入力できるプログラムをコーディングしています。これは、正三角形か二等辺三角形かを示します。残りの部分については今のところ心配していませんが、正三角形の部分に固執しています。 。これが私のコードです:
def idtri():
print("\nDo you have all three sides, or al three angles?")
print("(1) Sides")
print("(2) Angles")
choice = input()
if choice == 1:
print("\nType in the lengths of all of the sides.")
t1 = input("1: ")
t2 = input("2: ")
t3 = input("3: ")
print("Your triangle is an equalateral triangle.")
menu()
elif choice == 2:
pass
idtri()