Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Stoad
  • Order by date
  1. Stoad

    Fastest way to "increase" a string of digits

    Thanks again, Eric! But seems a slight misunderstanding goes here. Of course I'm not going to mute the immutable strings, but only their copies... To clear the whole thing, this is where my "trouble" origins from: http://spoj.sphere.pl/problems/PALIN/ I'm just trying to advocate for Python...
  2. Stoad

    Fastest way to "increase" a string of digits

    Given a very long (e.g. len()=10^12) string of digits: e.g., s='23426994030208483858........38838299459942' What I need is just to increase by 1 this string-number: '12347'+'1'='12348'. (Note the "terrible" case: '9999'+'1'='10000') But seems that s=str(long(s)+1) is quite expensive way to...
  3. Stoad

    How to reverse a plain string?

    wow! incredible! thanks a lot eric!
  4. Stoad

    How to reverse a plain string?

    I can't find anything for the subject. Need something like this: s='qwerty' s=s.reverse() print s ytrewq >>>

Part and Inventory Search

Back
Top