Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • \$\begingroup\$ You can store Strings of arbitrary size in Python? \$\endgroup\$ Commented Jun 1, 2012 at 19:02
  • \$\begingroup\$ @userunknown, the rules have been updated -- if Python limits string length, that isn't up to me. \$\endgroup\$ Commented Jun 1, 2012 at 19:48
  • \$\begingroup\$ Haha! You don't blow the 64-bit limit, but Python does? Wait ... \$\endgroup\$ Commented Jun 1, 2012 at 19:51
  • \$\begingroup\$ lol, yup. This code will work for every possible input for which the input & output fit in memory. Being base 10, there's a fairly wide gulf between what you can do with your int accumulator and my carries-in-memory -- as I noted on ugoren's solution. \$\endgroup\$ Commented Jun 1, 2012 at 19:59
  • \$\begingroup\$ @userunknown: Nope, you can't, but the limit is very high, about 10 **8 \$\endgroup\$ Commented Jul 30, 2016 at 6:11