You are viewing a single comment's thread. Return to all comments →
print(s.count("a") * (n // len(s)) + s[:n % len(s)].count("a")) please any one explain me this
Seems like cookies are disabled on this browser, please enable them to open this website
Repeated String
You are viewing a single comment's thread. Return to all comments →
print(s.count("a") * (n // len(s)) + s[:n % len(s)].count("a")) please any one explain me this