Create a function that takes three arguments argument 1 - will be the operation to perform as a string + for addition - for subtraction + for addition * for multiplication argument 2 will be a value...


Create a function that takes three arguments



  • argument 1 - will be the operation to perform as a string

    • + for addition

    • - for subtraction

    • + for addition

    • * for multiplication



  • argument 2 will be a value

  • argument 3 will be another value

  • function should look like perform_operation(operation, value1, value2)

  • when the function is called with these arguments perform_operation("+", 4, 10), I would expect the function to return 14 as the result.



You are required to use the return keyword



Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here