Question: Write a function called is liquid that accepts one parameter. If the parameter's value is less than or equal to 100, and greater than

Write a function called is liquid that accepts one parameter. If the parameter's value is less than or equal

Write a function called is liquid that accepts one parameter. If the parameter's value is less than or equal to 100, and greater than or equal to 0, the function should return True. Otherwise, it should return false. Then, write a driver function that gets input from the user through the prompt 'what is the temperature outside (in Celsius)?'. Pass this input in to the is liquid function and print out whether water is a liquid or not. Question 26: Inspired by the Life and Death Brigade's part in Gilmore Girls, you decide that you want to write a function to test whether an input string has an 'e' in it. Write a function has an e that will take one parameter (a string), and return True if that string has an 'e' in it, and False if it does not. Demonstrate this function by asking the user to input a string and passing the string to your function and providing some output that tells the user whether or not the string has an 'e' in it.

Step by Step Solution

3.40 Rating (162 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer Heres the Python code f... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!