The function coupon_calculator takes one parameter: age. It…
The function coupon_calculator takes one parameter: age. It should return a string with a specific discount based on the user’s age. Users below the age of 18’s discount should be their age as a percent. Users below the age of 65’s discount should be 50% off. All other users should receive a discount of 70% off. All users will receive a string that will include their age and discount. For example: coupon_calculator(25) should return “25 years old? Here is your 50% discount.” However, the function contains multiple logic and/or syntax errors. Identify and correct the errors in the code snippet so the function works as intended. You cannot change entire chunks of code nor rewrite it completely. Mention the line number where the error is, what the error is, and the correction. 1. def coupon_calculator(age):2. discount = 1003. if age < 18:4. discount = age5. else if age < 65:6. discount /= 27. else:8. discount == 709. return f"age years old? Here is your {discount}% discount."
Read DetailsThe veins of the head and neck typically start out as large…
The veins of the head and neck typically start out as large venules and become smaller as they near the base of the neck on their way to the heart. The veins of the head and upper neck are usually symmetrical in location with limited to no variation regarding their locations and drainage patterns.
Read Details