On 2018-03-23 14:12:27 +0100, ast wrote: > Le 23/03/2018 à 13:55, Wolfgang Maier a écrit : > > On 03/23/2018 01:30 PM, Wolfgang Maier wrote: > > > On 03/23/2018 01:16 PM, ast wrote:
[quoted from the first mail in this thread:] > > > > It works but is it not optimal since there is a > > > > string to int conversion. > > n = int( > > ''.join(""" > > 37107287533902102798797998220837590246510135740250 > > 46376937677490009712648124896970078050417018260538 > > 74324986199524741059474233309513058123726617309629 > ... > > > 45876576172410976447339110607218265236877223636045 > > 17423706905851860660448207621209813287860733969412 > > """.split()) > > ) > > > > yes, good idea Not if you want to avoid that string to int conversion (as you stated). That is still there, but in addition you now split the string into a list and then join the list into a different string. hp -- _ | Peter J. Holzer | we build much bigger, better disasters now |_|_) | | because we have much more sophisticated | | | h...@hjp.at | management tools. __/ | http://www.hjp.at/ | -- Ross Anderson <https://www.edge.org/>
signature.asc
Description: PGP signature
-- https://mail.python.org/mailman/listinfo/python-list