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

opposite meaning of word Calm ​
If the measure of < CAB = 137 then what is < CAD =
Kimberly wants to enlarge hut 5‘ x 10‘ rectangular patio by multiplying its dimensions by two how old the area of the patio be affected
can you guys help me i will mark if i can
The graph of a quadratic function with vertex (1,-3) is shown In the figure below . Find the domain and the range
Help please due today i need the answer written out please 38 POINTS!!!!
how do you do stuff like 20 x 0.4?? i forgot ​
Drag the correct labels to the table. Not all labels will be used. Identify the benefits of trade during the Hellenistic era. PLEASE THIS IS IMPORTANT
Please help please real quick
When point A(-4,2) ir rotated 90 degrees counterclockwise, where is the image of A? (-2,-4) (-4,-2)