Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This is python programming questions You want to go for a walk at a local park.

ID: 3835831 • Letter: T

Question

This is python programming questions

You want to go for a walk at a local park. Write a piece two values from the user, the length of the path and rating for the park. You should print console output about how interested you are in that route; print either every very interested, sort-of interested, interested or not interested based on the following criteria: You like long walks. Any park rated at least 3.0 and having a route longer than 5 miles really interests you. You don't want a short walk. You won't take any route that is strictly less than 1 mile unless the park is rated at least 4.5. Even then you are only slightly interested. You are sort of interested in any park route that is longer than 3 miles and rated 3.5 to 4.5 stars You like quality parks. You are quite interested in parks that are rated 5.0. You are not interested in any other type of park.

Explanation / Answer


length = float(input("Enter length of the park: "))
rating = float(input("Enter rating: "))

if(rating >= 3.0) and (length > 5):
print("Really interests you.")

elif(length<1 and rating < 4.5):
print("Not interest in short-walk")

elif(length>3 and 3.5<=rating<=4.5):
print("Sort of interest")

elif(rating==5.0):
print("Quite interested.")

else:
print("Not-Interested")

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote