Re: Format numbers

2015-11-15 Thread Seymore4Head
On Sun, 15 Nov 2015 19:00:42 +, MRAB wrote: >On 2015-11-15 17:30, Seymore4Head wrote: >> Just screwing around making up practice problems. I can't get the >> format right. I am trying to learn how to get a output line to line >> up neatly. >> >> import random >> lo=1 >> hi=1 # I am addi

Re: Format numbers

2015-11-15 Thread MRAB
On 2015-11-15 17:30, Seymore4Head wrote: Just screwing around making up practice problems. I can't get the format right. I am trying to learn how to get a output line to line up neatly. import random lo=1 hi=1 # I am adding or subtracting 0s from this input number fm=len(str(hi)) # This co

Format numbers

2015-11-15 Thread Seymore4Head
Just screwing around making up practice problems. I can't get the format right. I am trying to learn how to get a output line to line up neatly. import random lo=1 hi=1 # I am adding or subtracting 0s from this input number fm=len(str(hi)) # This counts the digits of the input number print f