Re: [Tutor] trouble with if

2007-05-24 Thread Che M
I'm not sure what the whole indentation thing is for. And now I'm having trouble with the if statement things. Maybe your if statement troubles have been solved by others by now, but I'll just add that "the indentation thing" is a vital feature of Python, it is the way to separate code blocks

Re: [Tutor] trouble with "if"

2007-05-24 Thread Alan Gauld
"adam urbas" <[EMAIL PROTECTED]> wrote > It won't even accept words. > I can only get it to accept numbers. try this(untested code!): number = None data = raw_input('Type something: ') try: number = int(data) except: data = data.split()# assume a string if number:# user entered a

Re: [Tutor] trouble with "if"

2007-05-24 Thread Alan Gauld
Hi adam. With the aid of Google it seems a Ti83 is a programmable calculator. I'm not sure what python tutor you are using but it looks like you need to cover some very basic stuff around data types. You may find the Raw Materials topic in my tutor useful to give you a feel for the different

Re: [Tutor] tkinter arrow event location

2007-05-24 Thread Alan Gauld
"Teresa Stanton" <[EMAIL PROTECTED]> wrote > Using a mouse I could use event.x to find the current location of > the mouse. > But if I have a canvas with a gif and I need the current location of > the > gif, could I bind the gif to an arrow event to get the feedback of > where the > gif is at a

[Tutor] dealing with nested list values in a dictionary

2007-05-24 Thread kumar s
Dear group, unfortunately my previous post got tagged as 'homework' mail and got no responses. In short, I have a dictionary structure as depicted below. I want to go over every key and print the key,value pairs in a more sensible way. I have written a small piece of code. May I request tuto