question about input() and/or raw_input()

Chris Angelico rosuav at gmail.com
Sun Jan 19 13:43:08 EST 2014


On Mon, Jan 20, 2014 at 5:37 AM, Roy Smith <roy at panix.com> wrote:
> What's so complicated?
>
> points = 501
> for dart in throws():
>    if points - dart == 0 and dart.is_double():
>       raise YouWin
>    if points - dart < 0:
>       continue
>    points -= dart
>    beer.drink()

assert victory
raise beer

ChrisA



More information about the Python-list mailing list