I couldn't find an answer for this, I'm a novice programmer so sorry about this dumb question!
Say in python I want to find where the first time the sequence [69, 69] appears in the list [34,34,34,50,39,69,69,54]
. Is there a list notation for this? I feel like there is, but I haven't been able to find it. I'm not looking to make a function, I want to learn list/for methods.
so if a = [34,34,34,50,39,69,69,54]
how would I find where [69,69]
starts? (as a general statement) If I assume that [69,69]
is in fact in a
?