You are viewing a single comment's thread. Return to all comments →
count = 0 i = 0 while i+3 <= len(s): if s[i] != 'S': count += 1 if s[i+1] != 'O': count += 1 if s[i+2] != 'S': count += 1 i += 3 * return count**
Seems like cookies are disabled on this browser, please enable them to open this website
Mars Exploration
You are viewing a single comment's thread. Return to all comments →
count = 0 i = 0 while i+3 <= len(s): if s[i] != 'S': count += 1 if s[i+1] != 'O': count += 1 if s[i+2] != 'S': count += 1 i += 3 * return count**