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

Mrs. Valdez bought 6 boxes of roses. Each box had 24 roses. She divided all the roses into 9 equal bunches. How many roses were in each bunch?
Some protists swim using _____, numerous short hair-like projections
When not working in the fields, peasants in ancient egypt would?
Slope intercept form write an equation
Why does the moon have phases? What are the four main phases of the moon? How long does it take to change from one to another?
Which figure of speech is the following line an example of? The trees groaned and shook their heads in the wind. metaphor simile alliteration pe
What is the volume of a bathtub if it’s dimensions are 3 meters long, 2 meters wide and 2 meters high? A 6 cubic meters B 16 cubic meters C 14 cubic meters D 12
Apush briefly explain one important difference between the economic systems of the north and the south in the period 1790-1840
Solve the equation. 8d – 4d – 6d – 8 = 2d
Cuando llegué, ella _______ sola leyendo sus cuentos. estabas estuviste estuvieron estaba