0

is it possible to Forward declare a Faunction in Python?

1st Sep 2020, 2:27 PM
WaYR🇧🇩
WaYR🇧🇩 - avatar
3 ответов
+ 2
If your idea came from the concept of forward declaration of function in C/C++ language, then no ...
1st Sep 2020, 3:02 PM
Ipang
+ 1
Elobarate your question..
1st Sep 2020, 2:44 PM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
0
def add1(x, y) : return x+y def add2(a1, x, y) : return a1(x, y)+a1(x, y) print(add2(add1, 3,4)) #output for 2*(x+y) Is this, your question about?
1st Sep 2020, 2:36 PM
Jayakrishna 🇮🇳