On 04/29/2013 12:31 PM, Joseph Parkton wrote:
Yupp I totally agree on the errors. I finally had to change the
def hotel_cost(nights):
nights = nights * 140
return nights
to
def hotel_cost(nights):
return hotel_cost(nights) * 140
for it to work. Strange errors
Yupp I totally agree on the errors. I finally had to change the
def hotel_cost(nights):
nights = nights * 140
return nights
to
def hotel_cost(nights):
return hotel_cost(nights) * 140
for it to work. Strange errors but decent exercises for beginners.
On Mon, Apr 29,
On Mon, Apr 29, 2013 at 5:28 PM, Joseph Parkton wrote:
> I tried both suggestions from Chris and I get Oops, try again! Did you
> create a function called trip_cost? Not really sure why
Your problem is: codecademy is dumb and its errors are, too.
>>> def trip_cost(city, days):
... totalCost
I tried both suggestions from Chris and I get Oops, try again! Did you
create a function called trip_cost? Not really sure why
On Mon, Apr 29, 2013 at 9:24 AM, Sacha Rook wrote:
> Hi
> Do you need to;
>
> return totalCost in the function trip_cost
>
> so when you call trip_cost(city, days) it
Hi
Do you need to;
return totalCost in the function trip_cost
so when you call trip_cost(city, days) it gives you something back?
Hope it helps
S
On 29 April 2013 16:15, Joseph Parkton wrote:
> I am working on a codeacademy problem and I am stuck. The instructions are
> as follows:
>
> INST
On Mon, Apr 29, 2013 at 5:15 PM, Joseph Parkton wrote:
> I am working on a codeacademy problem and I am stuck. The instructions are
> as follows:
>
> INSTRUCTIONS
>
> Below your existing code, write a function called trip_cost that takes two
> inputs, city and days. cityshould be the city that you
I am working on a codeacademy problem and I am stuck. The instructions are
as follows:
INSTRUCTIONS
Below your existing code, write a function called trip_cost that takes two
inputs, city and days. cityshould be the city that you are going to visit
and days should be the number of days that you a