0
What is function call in python?
4 Réponses
+ 2
Daddy Mummy
Let's create a simple calculation function
def calculate(x,y):
print(x + y)
The function above will take any 2 numbers and add them together, but the function must be called.
This means you have set up a template which will only be enacted by the code if the code calls upon the function.
Lets call a few samples
calculate(7,5) -> 12
calculate(-6, 8) -> 2
calcualte(0.75, 18) -> 18.75
+ 1
Calling a function means using a function
+ 1
Function call is the process of calling a function. When you call a function, the execution starts inside the function block. You can call functions with different arguments. Refer my before code and play with it. All the best =)
https://code.sololearn.com/cdpUAAluJx80/?ref=app
0
Can you please tell me function call in calculation?