how i can make a function that give me True or False..? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

how i can make a function that give me True or False..?

I want do function (will call it is_contained(sub,lst)) and want to check if the sub is in the same sequence like lst ,like; is_contanied([1,2,3], [0,0,1,0,2,0,3]) True while .. is_contained ([1,2,3],[1,0,3,2]) False

29th Sep 2018, 3:33 PM
sama baluom
sama baluom - avatar
2 Answers
29th Sep 2018, 3:59 PM
Maninder $ingh
Maninder $ingh - avatar
+ 1
thank you🙂
29th Sep 2018, 4:04 PM
sama baluom
sama baluom - avatar