The task is the following:
"create a function with three parameters that are numbers that are added together.
Call the function in main and give it values"
When i run the code it it doesn’t give me the result i expect, wich is the addition of the 3 inputs that i put in the prompt;
instead it gives me this result:
“<function sumaparametros at 0x0000000000679C10>”
The problem is when you call your function
When you call it, it is expected that you pass 3 parameters there, in your case those parameters are
Remember, you just need to fix the piece of code inside the
you didn’t call/run the function. you need something like this “- … some_func(…) …”. it is printing address of the function on memory <…0x0000000000679C10>. you need somethin like this:
> def sumparmeters(arg1,arg2,arg3):
> num1= int(input("enter 1st int:"))
> num2= int(input("enter 2st int:"))
> num3= int(input("enter 3st int:"))
side note: the first print is redundant. and function returns “None” at the moment. so I’ve changed/added return.