Python Higher Order Functions
Hi, I am new to Python and am currently learning Chapter 05 of the Python lesson. I have a query on higher order function. Please refer to below for my code. x = int(input()) print("Input a number:",x) print("Your number will produce the output of double adding five:") def Higher(func, arg): return func(func(arg)) def Base(x): answer = int(x+5) return answer print(Higher(Base,x)) 01. I understand that the above will not work if I try to code 2 inputs because the Base function will return only 1 value to the Higher function. Is this understanding correct? 02: How should I code if I want to use higher order function with 2 arguments (eg. x + y + 5 twice) ? 03. Is this a correct use case to use higher order function? Thank you in advance.