Question: please answer the following questions in python ? Write a function that returns true if a number is even and false if it is not.
please answer the following questions in python ?
Write a function that returns true if a number is even and false if it is not.
Write a function that converts Celsius to Fahrenheit (9.0/5.0 * C + 32.0).
Write a function that raises a number to a power. For example, pow(2,3) returns 8.
The built-in function eval takes a string and evaluates it using the Python interpreter. For example:
>>> eval('1 + 2 + 3') returns 7
>>> eval('math.sqrt(5)') returns 2.2360679774997878
Write a function called eval_loop that iteratively prompts the user, takes the resulting input, evaluates it using eval, and prints the result. It should continue until the user enters 'done' and then return the value of the last expression it evaluated.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
