[Tutor] help with alternate execution

2009-09-29 Thread wrobl1rt
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 divisible by 3" else: p

[Tutor] need help with conditionals

2009-09-25 Thread wrobl1rt
Hello all, I am still very new to Python and am working on conditionals. Im stuck on this problem and I'm sorry if this is something really simple that I'm missing but its been really frustrating me. Here's a copy of the problem, and sorry if its really long but its the end question about the