Re: [Tutor] Another Newbie question

2008-06-25 Thread Lie Ryan
That's because you're doing it in interactive mode. In interactive mode, the code is treated like commands, it is executed immediately after the command is finished. You may differentiate Interactive Mode and Normal/Coding Mode by the prompt, in Coding Mode there is no prompt cause, in Interactive

Re: [Tutor] Another Newbie question

2008-06-24 Thread bhaaluu
On Tue, Jun 24, 2008 at 6:23 AM, Danny Laya <[EMAIL PROTECTED]> wrote: > Hi I got some problem about writting convention in python. Some tutorial ask > me to write this : > > a = 1 > s = 0 > print 'Enter Numbers to add to the sum.' > print 'Enter 0 to quit.' > while a != 0: > print 'Current Sum

Re: [Tutor] Another Newbie question

2008-06-24 Thread Cédric Lucantis
Le Tuesday 24 June 2008 12:23:41 Danny Laya, vous avez écrit : > Hi I got some problem about writting convention in python. Some tutorial > ask me to write this : > > a = 1 > s = 0 > print 'Enter Numbers to add to the sum.' > print 'Enter 0 to quit.' > while a != 0: > print 'Current Sum:', s >

[Tutor] Another Newbie question

2008-06-24 Thread Danny Laya
Hi I got some problem about writting convention in python. Some tutorial ask me to write this : a = 1 s = 0 print 'Enter Numbers to add to the sum.' print 'Enter 0 to quit.' while a != 0: print 'Current Sum:', s a = int(raw_input('Number? ')) s = s + a print 'Total Sum =', s And the

Re: [Tutor] Another newbie question from Nathan.

2005-07-10 Thread Adam Bark
If I understand your problem correctly all you need to do is use the name of the function to call it ie: def func():     print "hello world" func() would give the output "hello world"On 7/10/05, Nathan Pinno <[EMAIL PROTECTED]> wrote:   Hi all,  How do I make Python get a def? Is it the "get" f

Re: [Tutor] Another newbie question from Nathan.

2005-07-10 Thread Nathan Pinno
Hi all, How do I make Python get a def? Is it the "get" function, or something else? I need to know so that I can get a def for that computer MasterMind(tm) game that I'm writing. BTW, I took your advice, and wrote some definitions for my Giant Calculator program. Might make the code eas