You are viewing a single comment's thread. Return to all comments →
counter = 0 for i in range(0, len(s), 3): if s[i] !='S': counter+=1 if s[i+1] != 'O': counter+=1 if s[i+2] !='S': counter+=1 return counter
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 →
counter = 0 for i in range(0, len(s), 3): if s[i] !='S': counter+=1 if s[i+1] != 'O': counter+=1 if s[i+2] !='S': counter+=1 return counter