tags:
- code
topic: List
difficulty: Beginner
link: https://www.codewars.com/kata/57cc975ed542d3148f00015b/solutions/python
date: 2023-10-20
Problem
You will be given an array
a
and a valuex
. All you need to do is check whether the provided array contains the value.
Array can contain numbers or strings. X can be either.
Returntrue
if the array contains the value,false
if not.
def check(seq, elem):
return (elem in seq)
[N/A]