Untitled

                Never    
"""
Given 3 integer inputs, write a function that determines what kind of triangle would be
formed if the 3 integers were the lengths of the sides.
~
Author: Craig Lewin, May 16 2019
5-16-2019: Wrote script.
"""

import random

a = random.randrange(1, 11)
b = random.randrange(1, 11)
c = random.randrange(1, 11)

print(f"A triangle has sides of length {a}, {b}, and {c}.")

if a == b == c:
    print("The sides of the triangles are all equal; the triangle is equilateral.")
elif a == b or b == c or c == a:
    print("Two sides of the triangle are equal; the triangle is isosceles.")
else:
    print("No sides of the triangle are equal; the triangle is scalene.")

Raw Text