plz explain me community members"....thx as usual | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
21st Sep 2020, 4:16 PM
#challenger mg
#challenger mg - avatar
3 Answers
+ 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
21st Sep 2020, 8:45 PM
Rik Wittkopp
Rik Wittkopp - avatar
+ 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.
21st Sep 2020, 4:33 PM
The future is now thanks to science
The future is now thanks to science - avatar
0
ok done::)
21st Sep 2020, 4:20 PM
#challenger mg
#challenger mg - avatar