Re: [Tutor] Codeacademy Problem

2013-04-29 Thread Dave Angel
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

Re: [Tutor] Codeacademy Problem

2013-04-29 Thread Joseph Parkton
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,

Re: [Tutor] Codeacademy Problem

2013-04-29 Thread Chris “Kwpolska” Warrick
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

Re: [Tutor] Codeacademy Problem

2013-04-29 Thread Joseph Parkton
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

Re: [Tutor] Codeacademy Problem

2013-04-29 Thread Sacha Rook
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

Re: [Tutor] Codeacademy Problem

2013-04-29 Thread Chris “Kwpolska” Warrick
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

[Tutor] Codeacademy Problem

2013-04-29 Thread Joseph Parkton
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