-2

I need to split huge number into 50-digit chunks and then add it up.

Can you help me?

Septinel
  • 23
  • 4

1 Answers1

-1
[chunk for chunk in str(huge_number)[::50]]
vZ10
  • 2,468
  • 2
  • 23
  • 33
  • 1
    Thank you for this code snippet, which may provide some immediate help. A proper explanation [would greatly improve](//meta.stackexchange.com/q/114762) its educational value by showing *why* this is a good solution to the problem, and would make it more useful to future readers with similar, but not identical, questions. Please [edit] your answer to add explanation, and give an indication of what limitations and assumptions apply. – Toby Speight Jun 19 '17 at 14:20