Source code for kyu_8.third_angle_of_triangle.third_angle_of_triangle
# Created by Egor Kostan.
# GitHub: https://github.com/ikostan
# LinkedIn: https://www.linkedin.com/in/egor-kostan/
[docs]def other_angle(a: int, b: int) -> int:
"""
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:
"""
return 180 - (a + b)