mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-12-18 17:20:16 +00:00
7 lines
105 B
Python
7 lines
105 B
Python
|
from __future__ import print_function
|
||
|
n = 2**1000
|
||
|
r = 0
|
||
|
while n:
|
||
|
r, n = r + n % 10, n // 10
|
||
|
print(r)
|