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] pointer puzzlement

2015-05-08 Thread Dave Angel
On 05/08/2015 06:26 PM, Alan Gauld wrote: On 08/05/15 19:10, Jim Mooney Py3.4.3winXP wrote: On 7 May 2015 at 18:42, Dave Angel wrote: Python doesn't have pointers So what is the difference between a python name and a pointer? OK, This could get deepo. Lets start with the supoerficial...

Re: [Tutor] pointer puzzlement

2015-05-08 Thread Alan Gauld
On 08/05/15 19:10, Jim Mooney Py3.4.3winXP wrote: On 7 May 2015 at 18:42, Dave Angel wrote: Python doesn't have pointers So what is the difference between a python name and a pointer? OK, This could get deepo. Lets start with the supoerficial... A pointer (in most languiages) is a named

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

Re: [Tutor] pointer puzzlement

2015-05-08 Thread Dave Angel
On 05/08/2015 02:10 PM, Jim Mooney Py3.4.3winXP wrote: On 7 May 2015 at 18:42, Dave Angel wrote: Python doesn't have pointers So what is the difference between a python name and a pointer? I'm a bit fuzzy on that. What's the difference between a painting of Obama and a living state Senat

[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

Re: [Tutor] pointer puzzlement

2015-05-08 Thread Jim Mooney Py3.4.3winXP
On 7 May 2015 at 18:42, Dave Angel wrote: > Python doesn't have pointers So what is the difference between a python name and a pointer? I'm a bit fuzzy on that. -- Jim "What a rotten, failed experiment. I'll start over. Maybe dogs instead of monkeys this time." --God ___

Re: [Tutor] introspection

2015-05-08 Thread Dave Angel
On 05/08/2015 02:26 AM, Alex Kleider wrote: On 2015-05-07 20:45, Dave Angel wrote: You also only showed it working on module globals. (For code at top-level, locals() returns the same as globals() ) You could also try it inside functions, where locals() really makes sense as a name. And you

Re: [Tutor] my membership and access to the Tutor list

2015-05-08 Thread Alan Gauld
On 08/05/15 09:09, Stewart Lawton wrote: Hi Alan Thank you very much for your response to my Tutor@python.org question. I thought my membership was complete and that I could log in to answer your comments. The tutor list is a mailing list not a web forum. You don't login to answer comments you

Re: [Tutor] Tip (thank) your mentors

2015-05-08 Thread Sreenath GK
Hi, True that. Appreciate everyone who is offering a helping hand for the newbies like me. Best Regards, Sreenath On Fri, May 8, 2015 at 8:08 AM, Ben Finney wrote: > Howdy all, > > I just received a private message that, briefly and simply, thanked me > for advice I gave in this forum, explai