Missing Triangle Angle

In every triangle, the angles always add up to 180 degrees, which makes the missing angle easy to calculate. Write a function other_angle that takes two angles a and b. Return the third angle of the triangle.

Примеры

Ввод
30, 60
Вывод
90
Ввод
60, 60
Вывод
60
Ввод
43, 78
Вывод
59

Нужно реализовать

def other_angle(a: int, b: int) -> int:

Теги

math
PostgreSQLv16

Εδώ θα εμφανιστεί το αποτέλεσμα εκτέλεσης του κώδικα

Visible tests
1
Input
30, 60
Expected90
2
Input
60, 60
Expected60
3
Input
43, 78
Expected59
4
Input
10, 20
Expected150
5
Input
90, 45
Expected45
6
Input
100, 78
Expected2
Focus radio
Paused · SomaFM · Fluid