Re: [Tutor] function question

2019-01-05 Thread Steven D'Aprano
Hello David, and welcome! On Sat, Jan 05, 2019 at 11:18:04AM -0500, David Lynch wrote: [...] > From what I've read about functions I should be able to define a function > with 2 variables? And then I can add all of my code into that function by > indenting it. So far so good! Here's an example

Re: [Tutor] function question

2019-01-05 Thread Alan Gauld via Tutor
On 05/01/2019 16:18, David Lynch wrote: > Hello, > I'm not sure if this is where I can find this sort of help but I am > struggling understanding functions. I have written a simple math code but I > feel like it could be improved if I were to use it in a function. You arein the right place and

[Tutor] function question

2019-01-05 Thread David Lynch
Hello, I'm not sure if this is where I can find this sort of help but I am struggling understanding functions. I have written a simple math code but I feel like it could be improved if I were to use it in a function. >From what I've read about functions I should be able to define a function with