makes_10

Get two integers from the user. Output 'True' if one if them is 10 or if their sum is 10. For the test cases below, False means “no” and True means “yes”.

This exercise was taken from codingbat.com and has been adapted for the Python language. There are many great programming exercises there, but the majority are created for Java.

Test 1

Input:

9
10

Output:

True

Test 2

Input:

9
9

Output:

False

Test 3

Input:

1
9

Output:

True

Test 4

Input:

10
1

Output:

True

Test 5

Input:

10
10

Output:

True

Test 6

Input:

8
2

Output:

True

Test 7

Input:

8
3

Output:

False

Test 8

Input:

10
42

Output:

True

Test 9

Input:

12
-2

Output:

True