Menu
Coddy logo textTech

Hash 33

Lesson 11 of 12 in Coddy's Python Interview Series course.

challenge icon

Challenge

Easy

Write a function has_33 that gets,

  • a1 - integer-array

 

 return True if the array contains a 3 next to a 3 somewhere.


Example:

Input - [1, 3, 3]

Expected Output - True

Try it yourself

def has_33(a1):
    # Write code here

All lessons in Python Interview Series