Skip to content

Latest commit

 

History

History
39 lines (20 loc) · 547 Bytes

You_only_need_one_Beginner.md

File metadata and controls

39 lines (20 loc) · 547 Bytes

CodeWars Python Solutions


You only need one - Beginner

You will be given an array a and a value x. All you need to do is check whether the provided array contains the value.

Array can contain numbers or strings. X can be either.

Return true if the array contains the value, false if not.


Given Code

def check(seq, elem):
    pass

Solution

def check(seq, elem):
    return elem in seq

See on CodeWars.com