Now let's pass data in with parameters and get a result back with return.
Write a function that adds two numbers and hands the answer back to the caller.
Your tasks
1. Define a function add(a, b) that takes two parameters
2. Inside the function, return the value of a + b
3. Call add(5, 7) and print the result
Expected output
12
Constraints
- Use
return to send the result back (do not print inside the function)
- Print the result by calling the function, e.g.
print(add(5, 7))
- No external libraries