You are viewing a single comment's thread. Return to all comments →
def repeatedString(s, n):`` # Write your code here len_s=len(s) x=n//len_s y=n%len_s z=s.count("a") c=x*z+s[:y].count("a") return c
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 →