You are viewing a single comment's thread. Return to all comments →
Easier to understand for beginners:
def beautifulDays(i, j, k): count=0 while i<=j: reversedate=int(str(i)[::-1]) if (i-reversedate)%k==0: count+=1 i+=1 return count
Beautiful Days at the Movies
You are viewing a single comment's thread. Return to all comments →
Easier to understand for beginners: