Data update
This commit is contained in:
parent
72eb4943cb
commit
4d5544505c
2347 changed files with 62432 additions and 16731 deletions
|
|
@ -1,12 +1 @@
|
|||
def numsum(n):
|
||||
''' The recursive sum of all digits in a number
|
||||
unit a single character is obtained'''
|
||||
res = sum([int(i) for i in str(n)])
|
||||
if res < 10: return res
|
||||
else : return numsum(res)
|
||||
|
||||
for n in range(1,101):
|
||||
response = 'Fizz'*(numsum(n) in [3,6,9]) + \
|
||||
'Buzz'*(str(n)[-1] in ['5','0'])\
|
||||
or n
|
||||
print(response)
|
||||
print(*map(lambda n: 'Fizzbuzz '[(i):i+13] if (i := n**4%-15) > -14 else n, range(1,100)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue