- 1
what is the answer to this question? Fill in the blanks to define a function that takes two arguments and prints their multiplac
what is the answer to this question? Fill in the blanks to define a function that takes two arguments and prints their multiplacation. The only code it gives me is _print_multi(x,y)_ print(x*_)
10 Antworten
+ 3
def print_multi(x,y):
print(x* y)
+ 3
function
myFunction(x, y)
{
alert(x
+
y
);
}
+ 1
Fill in the blanks to create a function that multiplies its parameter by 2 and returns the result.
double(int x) {
return
x
*
2;
}
0
When is the "return" statement most frequently needed?
When you need to add a pop-up window to the screen
When you need to input data
When you need to make a calculation and receive the result
- 1
- 1
Function double (num){
Console.log(num*2);
}
- 1
Answer
function
return
- 2
def
:
y
- 2
1. def
2. :
3. y
- 11
To answer this, you need to study functions, and I can see you barely even started python. Please finish python course, or at least up to functions lesson, before asking such basic questions.