You are viewing a single comment's thread. Return to all comments →
def marsExploration(s): # Write your code here repetitions = len(s) // 3 sos_str = "SOS" * repetitions
dissimilar_count = sum(1 for a, b in zip(s, sos_str) if a != b) return dissimilar_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 →
def marsExploration(s): # Write your code here repetitions = len(s) // 3 sos_str = "SOS" * repetitions