Question: Function name: quick_maths() Parameters: a number (float), a number (float), an operation (string) Returns: a float Description: Youre trying to do your math homework, and
Function name: quick_maths()
Parameters: a number (float), a number (float), an operation (string)
Returns: a float
Description: Youre trying to do your math homework, and you realized that you can
write a program to do all the simple operations! The five possible operations are +, -,
*, /, and %. Based on the operation that is passed in, perform the operation on the
two numerical parameters. The first parameter should always go first in the operation.
Return the result of the operation rounded to two decimal places. If the operation is not
one of the five listed above, return That operation does not exist!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
