def f(a):
if abs(a) < 10:return abs(a);
else: return abs(a) % 10 + f(a // 10)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
def f(a):
if abs(a) < 10:return abs(a);
else: return abs(a) % 10 + f(a // 10)