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 musical notation important? What benefits do musicians and others receive from being able to write down and note aspects of a musical piece?
supplicate A. to give B. to answer C. to beseech D. to ignore
What is the additive inverse of 4x? A. 4 – x B. –4x C. 1/4x D. x – 4
what effect did the use of credit have on the economy in the 1920s
What Is 3,552,308,725 In Word Form
use a word dogged in an EASY sentence ;) dogged = stubbornly pursuading a goal hurrry up plz
How do you write a word phrase for y/5
Which lists the even numbers between 1 and 19 in set notation? A.{2, 4, 6, 8, 10, 14, 16, 18} B.{0, 2, 4, 6, 8, 10, 12, 14, 16, 18} C.{1, 3, 5, 7, 9, 11, 13, 15
How do I use the distributive law to factor 2a + 2b?
Which pronoun correctly completes the sentence? __________ has sent these lovely flowers? A. Who B. Whom