kyu_8.third_angle_of_triangle package

Submodules

kyu_8.third_angle_of_triangle.test_third_angle_of_triangle module

Test for -> Third Angle of a Triangle.

Created by Egor Kostan. GitHub: https://github.com/ikostan

class kyu_8.third_angle_of_triangle.test_third_angle_of_triangle.OtherAngleTestCase(methodName='runTest')[source]

Bases: TestCase

Testing other_angle function.

_classSetupFailed = False
_class_cleanups = []
test_other_angle = None
test_other_angle_0(**kw)

Testing other_angle function with various test data [with a=30, b=60, expected=90].

Returns:

test_other_angle_1(**kw)

Testing other_angle function with various test data [with a=60, b=60, expected=60].

Returns:

test_other_angle_2(**kw)

Testing other_angle function with various test data [with a=43, b=78, expected=59].

Returns:

test_other_angle_3(**kw)

Testing other_angle function with various test data [with a=10, b=20, expected=150].

Returns:

kyu_8.third_angle_of_triangle.third_angle_of_triangle module

Solution for -> Third Angle of a Triangle.

Created by Egor Kostan. GitHub: https://github.com/ikostan

kyu_8.third_angle_of_triangle.third_angle_of_triangle.other_angle(a: int, b: int) int[source]

Calculate 3rd angle.

You are given two angles (in degrees) of a triangle. Write a function to return the 3rd. Note: only positive integers will be tested. :param a: :param b: :return:

Module contents

Third Angle of a Triangle.