5. Pull it Together
Oops, try again. Your code looks a bit off. Feel free to peek back at earlier exercises if you need a refresher! Take a look at the console window for the error message from the interpreter.
File "python", line 7
SyntaxError: 'return' outside function
I need it to tell me I did it right and move on lol.. when i get stuck like this i lose modivation to learn, but i want to learn
def hotelcost(nights): return 140*nights def planeridecost(city): if city == "Charlotte": return 183 if city == "Tampa": return 220 if city == "Pittsburgh": return 222 if city == "Los Angeles": return 475 def rentalcarcost(days): cost = days *40 if days >= 7: cost=cost - 50 return cost elif days >=3: cost = cost - 20 return cost else: return cost; def tripcost(city, days): return hotel_cost(days)+plane_ride_cost(city)+rental_car_cost(days)