Re: [Tutor] conditional execution

2014-04-04 Thread Peter Otten
spir wrote: > On 04/01/2014 06:24 PM, Zachary Ware wrote: >> Hi Patti, >> >> On Tue, Apr 1, 2014 at 11:07 AM, Patti Scott wrote: >>> I've been cheating: comment out the conditional statement and adjust >>> the indents. But, how do I make my program run with if __name__ == >>> 'main': >>> main()

Re: [Tutor] conditional execution

2014-04-03 Thread Mark Lawrence
On 02/04/2014 08:18, spir wrote: On 04/01/2014 06:24 PM, Zachary Ware wrote: Hi Patti, On Tue, Apr 1, 2014 at 11:07 AM, Patti Scott wrote: I've been cheating: comment out the conditional statement and adjust the indents. But, how do I make my program run with if __name__ == 'main': main() at

Re: [Tutor] conditional execution

2014-04-02 Thread Patti Scott
Thank you Emile, Zach, Chris and d.   I am actually catching lots of my typos before I try to run anything ... From: spir To: tutor@python.org Sent: Wednesday, April 2, 2014 3:18 AM Subject: Re: [Tutor] conditional execution On 04/01/2014 06:24 PM

Re: [Tutor] conditional execution

2014-04-02 Thread spir
On 04/01/2014 06:24 PM, Zachary Ware wrote: Hi Patti, On Tue, Apr 1, 2014 at 11:07 AM, Patti Scott wrote: I've been cheating: comment out the conditional statement and adjust the indents. But, how do I make my program run with if __name__ == 'main': main() at the end? I thought I understood

Re: [Tutor] conditional execution

2014-04-01 Thread Zachary Ware
Hi Patti, On Tue, Apr 1, 2014 at 11:07 AM, Patti Scott wrote: > I've been cheating: comment out the conditional statement and adjust the > indents. But, how do I make my program run with if __name__ == 'main': > main() at the end? I thought I understood the idea to run a module called > directl

Re: [Tutor] conditional execution

2014-04-01 Thread Chris “Kwpolska” Warrick
On Tue, Apr 1, 2014 at 6:07 PM, Patti Scott wrote: > I've been cheating: comment out the conditional statement and adjust the > indents. But, how do I make my program run with if __name__ == 'main': > main() at the end? I thought I understood the idea to run a module called > directly but not a