Chris VanYe 1. z is a local variable within the function and the function isn't called. 2. the function needs to be called 3. call/print the function with two numbers put in for x and y
1. z isn't called outside the definition of the function. 2. z needs to be called outside the definition. 3. call the function using numbers outside the definition.
This program doesn't work because you defined the variable z within the local scope (within a function). You have to print the var inside the function and then call the function.
1. z is not defined out of the function so it will result in an error. 2. we need to print the function instead of the variable. 3. first fix summ to sum. Next, change the print command to print sum(any interger, another interger). Joe Haj
I think no sum this word in program, fix summ to sum.
ReplyDelete-lux lei
z is not defined outside of the function. In order to print the desired value from the function, the line would instead have to be:
ReplyDeleteprint (summ(x,y))
with x and y substituted by the values desired, respectively.
-Katelyn
Chris VanYe
ReplyDelete1. z is a local variable within the function and the function isn't called.
2. the function needs to be called
3. call/print the function with two numbers put in for x and y
1. z isn't called outside the definition of the function.
ReplyDelete2. z needs to be called outside the definition.
3. call the function using numbers outside the definition.
Josh Lee
This program doesn't work because you defined the variable z within the local scope (within a function). You have to print the var inside the function and then call the function.
ReplyDelete- Abby Peterson
u can't return then print.
ReplyDeletereturn z
z= x+y
print z
-Gary Gao
x and y do not have a variable you need to define x and y
ReplyDeletejonathan
summ wasn't called. call summ
ReplyDelete(____) around the z and indent the print line
ReplyDeletethen call the function
- Owen Luther
Z isn't defined outside the function
ReplyDelete-Sean
1. z isn't called.
ReplyDelete2. it needs to be called.
3. call it with 2 numbers defined for x and y
Alex Haston
fix sum, this wouldn't work
ReplyDeleteCharlie Lin
1. z is not defined out of the function so it will result in an error.
ReplyDelete2. we need to print the function instead of the variable.
3. first fix summ to sum. Next, change the print command to print sum(any interger, another interger).
Joe Haj