On 2020-02-04 02:37, Steven D'Aprano wrote:
Sometimes I'm tempted to write numbers like that as follows:
P = int('29674495668685510550154174642905332730771991' '79985304335099507553127683875317177019959423' '8596428121188033664754218345562493168782883')
which is nicer to read, except for the minor annoyance of the call to int and the string delimiters.
This variant seems to work pretty well, and I find it easy to understand.
If I had this problem often enough and end-users I'd probably put them in an .ini file (values broken with newlines), with a short function to load and assemble them properly.
-Mike