ematthewsjr602 ematthewsjr602
  • 10-11-2020
  • Computers and Technology
contestada

Write a program that accepts the lengths of three sides of a triangle as inputs. The program output should indicate whether or not the triangle is an equilateral triangle.

Respuesta :

Cytokine
Cytokine Cytokine
  • 10-11-2020

sides = ([])

i = 0

while i < 3:

   side = float(input("Enter the length of one side: "))

   sides.append(side)

   i += 1

if sides.count(sides[0]) == 3:

   print("Your triangle is an equilateral triangle.")

else:

   print("Your triangle is not an equilateral triangle.")

I hope this helps!

Answer Link

Otras preguntas

in what way do you think overseas commitment " influence the rise and fall of nations in Europe​
In the diagram below, LATE is an isosceles trapezoid with LE ≅ AT , LA = 24, ET = 40, and AT = 10. Altitudes LF and AG are drawn. What is the length of LF?
According to Dahl's definition of a democratic political system, the ability to change what policies the association already has is determined by the members'
Please answer for me ! And if you do answer Tysm please show your work also! ❤️
10. All of the following are examples of specialized cells except
Reviewing video surveillance is part of which alert food defense
What is the radius of the circle: (x+1)^2+(y-12)^2=25 1. (-1, 12) 2. 5 3. 25 4. (1, -12)
Find the missing term in the following pattern. 1984, 992, 496, blank space, 124, 62
In "Better Wait Till Martin Comes," when the cats repeatedly pick up red hot coals, it proves that the cats are ordinary and will not harm John. it distracts th
which points lie in the second quadrant? check all that apply.
good job