7.) Plan Your Trip Needs A Little Something More


#1


def trip_cost(city, days, spending_money):
    return  rental_car_cost(days) + hotel_cost(days) + plane_ride_cost(city) + spending_money
print trip_cost('Los Angeles', 5, 600)

tripcost();

So, as the instructions and hints go it would seem that all you need is print trip_cost('Los Angeles', 5, 600) but apparently, after reading some posts on this specifically thanks to @ionatan, I realized that I needed something else at the end. However, I have not been able to figure out this without getting this error: NameError: name 'tripcost' is not defined. I have the correct output but still need assistant in how to properly call this.


#2

trip_cost not tripcost


#3

Bibleman13 Blindness strikes again! Haha thanks man! wipes off glasses maybe some new spectacles? xD Also, I had to put in some parameters but that was my main problem sigh


#4

to tell the truth it's really embarrassing when a small mistake we can't see and take all the time.
whenever i cant slove the problem i just sleep :smile:
btw how much time you took? :smile:


#5

Its better the world doesn't know....but I slept in that period of time.... a lot...xD


#6

hahaha!!!! lol :smile:


#7

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.