Skip to content
Advertisement

Tag: count

Count consecutive characters

How would I count consecutive characters in Python to see the number of times each unique digit repeats before the next unique digit? At first, I thought I could do something like: So that in this manner I could see the number of times each unique digit repeats. But this, of course, falls out of range when i reaches the

Advertisement