Skip to content

Latest commit

 

History

History
38 lines (20 loc) · 440 Bytes

Third_Angle_of_a_Triangle.md

File metadata and controls

38 lines (20 loc) · 440 Bytes

CodeWars Python Solutions


Third Angle of a Triangle

You are given two angles (in degrees) of a triangle.

Write a function to return the 3rd.

Note: only positive integers will be tested.


Given Code

def other_angle(a, b):
    pass

Solution

def other_angle(a, b):
    return 180 - (a + b)

See on CodeWars.com