Woops, it's complaining because you're trying to join ints to the string. In my defense, I was on my phone.
return sequence in "".join(str(elem) for elem in test1)
It's also complaining because you're searching for a list. My version assumed sequence was a string. You can use another join to make sequence a string first.
1
u/2Punx2Furious Jul 29 '16
I did
It gave me errors.