• + 0 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