lone_teen

We’ll say that a number is “teen” if it is in the range 13..19 inclusive. Given 2 int values, return true if one or the other is teen, but not both.

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:

13
99

Output:

True

Test 2

Input:

21
19

Output:

True

Test 3

Input:

13
13

Output:

False

Test 4

Input:

14
20

Output:

True

Test 5

Input:

20
15

Output:

True

Test 6

Input:

16
17

Output:

False

Test 7

Input:

16
9

Output:

True

Test 8

Input:

16
18

Output:

False

Test 9

Input:

13
19

Output:

False

Test 10

Input:

13
20

Output:

True

Test 11

Input:

6
18

Output:

True

Test 12

Input:

99
13

Output:

True

Test 13

Input:

99
99

Output:

False