You are viewing a single comment's thread. Return to all comments →
# Alternating Characters 🅰 🅱 🅰 🅱 def alternating_characters(s): return sum([ 1 for i in range(len(s)-1) if s[i] == s[i+1] ])
Seems like cookies are disabled on this browser, please enable them to open this website
Alternating Characters
You are viewing a single comment's thread. Return to all comments →