has_23

Given an int list length 2, return true if it contains a 2 or a 3.

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:

[2, 5]

Output:

True

Test 2

Input:

[4, 3]

Output:

True

Test 3

Input:

[4, 5]

Output:

False

Test 4

Input:

[2, 2]

Output:

True

Test 5

Input:

[3, 2]

Output:

True

Test 6

Input:

[3, 3]

Output:

True

Test 7

Input:

[7, 7]

Output:

False

Test 8

Input:

[3, 9]

Output:

True

Test 9

Input:

[9, 5]

Output:

False