You are viewing a single comment's thread. Return to all comments →
def decentNumber(n): for fives in range(n, -1, -1): if fives % 3 == 0 and (n - fives) % 5 == 0: print('5' * fives + '3' * (n - fives)) return print(-1)
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and The Beast
You are viewing a single comment's thread. Return to all comments →