Question: write a function that gets two parameters (arguments) from the user and if both of them are integers, it returns the result of the first
- write a function that gets two parameters (arguments) from the user and if both of them are integers, it returns the result of the first parameter to the power second parameter (X**Y). If both parameters are strings, the function concatenates them (X+Y) and returns the result, otherwise, it returns an error message and gets two new inputs.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
