0

What is function call in python?

7th Nov 2021, 8:51 AM
Daddy Mummy
4 Respostas
+ 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
7th Nov 2021, 9:19 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
Calling a function means using a function
7th Nov 2021, 8:55 AM
Lisa
Lisa - avatar
+ 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
7th Nov 2021, 8:58 AM
Rishi
Rishi - avatar
0
Can you please tell me function call in calculation?
7th Nov 2021, 9:06 AM
Daddy Mummy