mix_start

Return true if the given string begins with “mix”, except the ‘m’ can be anything, so “pix”, “9ix” .. all count.

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:

'mix snacks'

Output:

True

Test 2

Input:

'pix snacks'

Output:

True

Test 3

Input:

'piz snacks'

Output:

False

Test 4

Input:

'nix'

Output:

True

Test 5

Input:

'ni'

Output:

False

Test 6

Input:

'n'

Output:

False

Test 7

Input:

''

Output:

False