How can I call one function from another function

lets say i have a function called sum which basically takes the value of ‘n’ i.e. the number till which i want to take out sum. now i have two different functions i.e. sum_of_even and sum_of_odd which wants to take the values from sum and import it in these two functions so that we can use it to find the sum of odd and even number till this number ‘n’

@psancheti110 hey sabse pehle to even odd sum wale functioons define krdo,fir uske bad apna jo sum function hai usme as parameter lelo jo lene hai fir uske and just call sum function with argument as n and similiarly call for odd with argument n and get ans from them and use in current function.Hope you get it :slight_smile:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.