[Tutor] a question about passing values between functions

2006-11-17 Thread kristinn didriksson
Hello, I am still wrestling with the concept of values going between functions. (just starting out)The program below works seems to work, but here is my question. In my understanding, return area in the first routine makes the value of area an instance of areaCirc and I use areaCirc in the other pr

[Tutor] what does it mean?

2006-11-13 Thread Kristinn Didriksson
Hello, This is my first program calling functions :) It worked nicely except for the message above. Can anyone explain what the message means. Thanks, Kristinn Program - # a program that prints the lyrics for Old Mcdonal had a farm for 5 different animals. # this wi

[Tutor] Drawing simple graphics objects

2006-11-08 Thread Kristinn Didriksson
Hello, This is one of the questions in Python Programming by Zelle. Ch 5, #1b. The problem calls for the program to create a new square at the mouse click instead of moving the square as in the previous problem. I have tried various ways to tackle the problem with no success. Any help would be

[Tutor] name is not defined error

2006-10-29 Thread Kristinn Didriksson
Hello, I am new to Python and programming and going through the "Python Programming " book by Zelle. I am trying to solve the following exercise and get a name is not defined error. It is my understanding that eval turns a string into a number and then I can do math operations on it. Any help

[Tutor] float object not callable error

2006-10-12 Thread Kristinn Didriksson
Hello, I an completely new to programming and am trying to teach myself Python using Python Programming by John Zelle. Essentially I am an ex- tech writer trying to learn how to program. My system: Mac OS X 10.4, Python 2.5, TextMate editor Here is the problem: I get 'float' object not callable