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

Why is it important to be action oriented?
In a certain plant, rough seeds (r) are dominant and smooth seeds (r) are recessive. two plants with genotype rr are crossed. which genotype would give their of
Can someone help me please
If you are unsure of the meaning of a word within a text, which of these strategies should you apply?A) skip the wordB) think of rhyming wordsC) look for contex
please expand the equation 1/5(3x - 5)=
what right do people exercise of they "plead the fifth amendment"
What is a reason that poets use repetition? because it is difficult to come up with words that rhyme because of the desire to emphasize an idea or concept becau
What advantages did prussia have in unifying the german states?
The food supply chain begins with _____. the consumer the food service manager the growers and farmers the FDA
Rancor in a sentence about unsportsmanlike conduct