0
plz explain me community members"....thx as usual
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2437/?ref=app
3 Réponses
+ 6
# This is the creation of the original function
def multiply(x, y):
return x * y
print(multiply(2, 3)) #6
# Here is an example where variables are substituted
a = 4
b = 7
print(multiply(a, b)) #28
# This section shows how even the function may be treated as an object and assigned to a variable
operation = multiply
print(operation(a, b)) #28
+ 3
I cannot help you as I am a beginner in python.
You can read the comments since the comments in that lesson are very helpful.
maybe this can help you:
https://medium.com/python-pandemonium/function-as-objects-in-python-d5215e6d1b0d#:~:text=Functions%20in%20python%20are%20first%20class%20objects.,order%20python%20function%20called%20map.
0
ok done::)