Can we pass a function with parameters as a callback function ?
No if you do that it will call the function you put as an argument itself, plus that beats the purpose
You can pass arguments to a callback by wrapping it in another function. I've made a little, basic demo. https://code.sololearn.com/Wn4Y7HVdUkcU/?ref=app Being able to handle arguments is very useful for callbacks, just as for other functions. For example, several in-built array methods take a callback function with multiple parameters. E.g. map, filter, reduce etc.
Problem Statement Given two integers a and b, your task is to calculate and print the following four values:
Please help, any idea?
Loop question, I've tried everything that I knew I just don't know. Please help me solve it out
Help me wiht python