Skip to content

mhrdev/playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Usage

>>> from triangle.triangle import get_triangle_type
>>> get_triangle_type(5, 10, 8)
'SCALENE'
>>> get_triangle_type(5.5, 5.5, 5.5)
'EQUILATERAL'
>>> get_triangle_type(1, 2, 3)
'SCALENE'
>>> get_triangle_type(1, 1, 30)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "triangle/triangle.py", line 38, in get_triangle_type
    _validate_sides(a, b, c)
  File "triangle/triangle.py", line 26, in _validate_sides
    raise ValueError("sum of 2 shortes sides must greater or equals the longest side")
ValueError: sum of 2 shortes sides must greater or equals the longest side

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages