Mars Exploration

  • + 0 comments
    def marsExploration(s):
        c=0
        for i in range(0,len(s)//3):
            if s[0+3*i]!='S':
                c+=1
            if s[1+3*i]!='O':
                c+=1
            if s[2+3*i]!='S':
                c+=1
            
        return c