Question
Search engines may give a price category to a restaurant or dish to help people determine how expensive dishes may be. In the space
Search engines may give a price category to a restaurant or dish to help people determine how expensive dishes may be.\ \ In the space below, write a complete function definition def priceCategory(price) that will just print (not return) the price category based on the input parameter price (denoted with + signs). Assume the input parameter price is a positive integer representing the average price for the restaurant. Your program should produce output based on the following criteria:\ \ if the price is $5 or less, your function should print +\ if the price is between $5 (exclusive) and $15 (inclusive), your function should print ++\ if the price is between $15 (exclusive) and $25 (inclusive), your function should print +++\ if the price is greater than $25 (exclusive), your function should print ++++\ Your solution should be a complete function definition (including the function signature, but a comment is not necessary for this question) with appropriate syntax and indentation. Since we are asking just for a function definition, your solution should not contain an if __name__ == "__main__": block.\ \ Note: you may use four whitespace characters for indentation since tabs may not work in Gradescope's answer box. Or you may write your solution in another text editor, and copy/paste it into Gradescope's answer box. The important thing is your indentation should be consistent for us to accurately grade your solution.\ \ An example of the correct output for the following priceCategory function calls are shown below:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started