Re: [Tutor] help with alternate execution

2009-10-02 Thread Patrick Sabin
wrobl...@cmich.edu wrote: Thank you for the reply.. I tried putting the print repr(n) before I defined 'n' with raw_input. My script looks like this-- def divisible(n): if n%3 == 0: print n, "is divisible by 3" else: print n, "is not divisible by 3" n= raw_input("enter

Re: [Tutor] help with alternate execution

2009-10-01 Thread Dave Angel
You sent the mail to me privately (off-list). That's not how mailing lists work. wrobl...@cmich.edu wrote: Thank you for the reply.. I tried putting the print repr(n) before I defined 'n' with raw_input. My script looks like this-- def divisible(n): if n%3 == 0: print n, "is di

Re: [Tutor] help with alternate execution

2009-10-01 Thread Dave Angel
You top-posted, and sent the mail to me privately (off-list). That's not how mailing lists work. wrobl...@cmich.edu wrote: Thank you for the reply.. I tried putting the print repr(n) before I defined 'n' with raw_input. My script looks like this-- def divisible(n): if n%3 == 0:

Re: [Tutor] help with alternate execution

2009-09-29 Thread Dave Angel
wrobl...@cmich.edu wrote: I'm trying to make a very simple example to show alternate execution... if a number is divisible by 3 it will say so and if it isnt, it will say so. Heres my program n= raw_input("enter a number= ") def divisible(n): if n%3 == 0: print n, "is divisibl

Re: [Tutor] help with alternate execution

2009-09-29 Thread vince spicer
On Tue, Sep 29, 2009 at 10:59 AM, wrote: > I'm trying to make a very simple example to show alternate execution... if > a > number is divisible by 3 it will say so and if it isnt, it will say so. > Heres my > program > > n= raw_input("enter a number= ") > def divisible(n): >if n%3 == 0: >