Re: [Tutor] formatting strings

2015-05-08 Thread Steven D'Aprano
On Fri, May 08, 2015 at 05:11:49PM -0700, Danny Yoo wrote: > Also, you can write a loop that goes from 1 to N by using range(). For > example: > > > for n in range(1, N+1): > print(n, 2*n) > > > The while loop that you have does work, but t

Re: [Tutor] formatting strings

2015-05-08 Thread Steven D'Aprano
On Thu, May 07, 2015 at 06:57:30PM +, Tudor, Bogdan - tudby001 wrote: > Hi, > > This is my first time. > I am using python 3.4.3 on windows 7 64bit. > > I am trying to make a binary counter that will prompt for and read a > decimal number (whole number). Then display all decimal numbers > s

Re: [Tutor] formatting strings

2015-05-08 Thread Danny Yoo
> I am trying to make a binary counter that will prompt for and read a decimal > number (whole number). Then display all decimal numbers starting from 1 up to > and including the decimal number entered along with the binary representation > of the numbers to the screen. You might consider writi

Re: [Tutor] formatting strings

2015-05-08 Thread Dave Angel
On 05/07/2015 02:57 PM, Tudor, Bogdan - tudby001 wrote: Hi, This is my first time. First time doing what? Presumably the first time on this forum. But what is your history of using Python, or of programming in general? I am using python 3.4.3 on windows 7 64bit. I am trying to make a bi

[Tutor] formatting strings

2015-05-08 Thread Tudor, Bogdan - tudby001
Hi, This is my first time. I am using python 3.4.3 on windows 7 64bit. I am trying to make a binary counter that will prompt for and read a decimal number (whole number). Then display all decimal numbers starting from 1 up to and including the decimal number entered along with the binary repres