Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #44629 > unrolled thread

Re: help..

Started byChris Angelico <rosuav@gmail.com>
First post2013-05-03 00:30 +1000
Last post2013-05-03 00:30 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: help.. Chris Angelico <rosuav@gmail.com> - 2013-05-03 00:30 +1000

#44629 — Re: help..

FromChris Angelico <rosuav@gmail.com>
Date2013-05-03 00:30 +1000
SubjectRe: help..
Message-ID<mailman.1241.1367505004.3114.python-list@python.org>
On Fri, May 3, 2013 at 12:20 AM, leonardo <tampucciolina@libero.it> wrote:
> on codecademy there is an interactive box where you type your code, it is a kind of exercise program to practice. but i don't understand what is wrong. this is the website address of that if you want to give a look:
>
> http://www.codecademy.com/courses/python-beginner-P5YtY/1/3?curriculum_id=4f89dab3d788890003000096

Well, I gave it a try, and it seemed to work :) Your second example
has a syntactic error (probably you want to say "days" again in the
second half of the 'and' condition), but with that fixed, both work
and are accepted by the opposite end. Though that last consideration
may not be all that indicative; this code was accepted and gave the
"Way to go!" success message:

def rental_car_cost(days):
    raise OSError()

Yeah, I don't think that quite worked :)

ChrisA

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web