0

What is function call Give an example

30th Jul 2016, 3:08 PM
Rupam Das
Rupam Das - avatar
2 Answers
+ 2
# writing the function def func1(x): return x**2 # calling the function result = func(6) # printing the output print(result) ok As I tried to explain with comments, calling a function is simply using it. If it takes arguments, we pass value(s) to it as well.
30th Jul 2016, 6:01 PM
Alireza M
Alireza M - avatar
- 2
a function is a controlling python method
31st Jul 2016, 9:45 AM
Desanne Pillay
Desanne Pillay - avatar