• + 0 comments

    pythonic way to put this...#singleline

    def beautifulDays(i, j, k):
        return len([i for i in range(i,j+1) if (i-int(str(i)[::-1]))%k==0])