On Wed, 5 Oct 2005, Rosalee Dubberly wrote:
> I am having problems with changing the parameters in my second function. > I want the second function to run the same as the first, but take > different parameters. What am I doing wrong???? Hi Rosalee, [First, make sure you're subscribed to Tutor; it appears that you're still not subscribed, so every post that you've made to the list so far has been manually moderated. See: http://mail.python.org/mailman/listinfo/tutor for details on how to subscribe.] It sounds like you might be a little confused about how to write functions that take arguments. Let's go through a few examples and see where you get stuck. First, let's try a simpler problem: let's say that we'd like to make function that "doubles" whatever we give it. For example, if we imagine that we have this function already, we might be able to use it like this: ###### >>> double(5) 10 >>> double(75) 150 ###### Would you be able to write a function to do this? If the question seems simple, please forgive me: I'm just trying to trace where exactly you start getting stuck,. It does feel like you're missing something fundamental, so we have to start somewhere. *grin* Best of wishes to you! _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor