We're a place where coders share, stay up-to-date and grow their careers.
def cubic(x): total = 0 tmp = x while ( tmp % 10 ) > 0 : total += (tmp % 10) **3 tmp = ( tmp // 10) return ("lucky" if (total == x) else "unlucky")
Wow ... That's too good ... But how about the secondary objective ? .. .
Wow ... That's too good ...
But how about the secondary objective ? .. .