Question in description pls explain it to me | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Question in description pls explain it to me

def first function(c,d): return c+d def second_function(a, b): return first_function (a, b) def third_function(a, b): result = second_function (5, 10) print(result) third_function(3,4)

10th Apr 2022, 8:06 AM
Javed Iqbal
Javed Iqbal - avatar
1 Answer
0
add proper Identation to code,.. hoping you don't have errors in your original code, and Third_function calling second_function with passed patameters. second_function just calling first_function with same parameters. first_function return sum of parameters to second_function same result is passed back to third_function.. Making it extend code instead of reduce just. You can get same with just one function first_function(3, 4) Hope it helps...
10th Apr 2022, 8:44 AM
Jayakrishna 🇮🇳