Target Ten

This kind of check is like a discount rule: it works if the target number is already present or appears as a sum. Write a function makes10 that takes two integers a and b. Return True if either number is 10 or if their sum is 10; otherwise, return False.

Примеры

Ввод
9, 10
Вывод
True
Ввод
9, 9
Вывод
False
Ввод
1, 9
Вывод
True

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

def makes10(a: int, b: int) -> bool:

Теги

math
PostgreSQLv16

Itt jelenik meg a kód futtatásának eredménye

Visible tests
1
Input
9, 10
ExpectedTrue
2
Input
9, 9
ExpectedFalse
3
Input
1, 9
ExpectedTrue
4
Input
10, 1
ExpectedTrue
5
Input
5, 5
ExpectedTrue
6
Input
-9, 10
ExpectedTrue
Focus radio
Paused · SomaFM · Fluid