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