Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
python coding contest
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 142 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Simon Hengel  
View profile  
 More options Dec 25 2005, 10:39 am
Newsgroups: comp.lang.python
From: Simon Hengel <si...@airlangen.de>
Date: Sun, 25 Dec 2005 16:39:47 +0100
Local: Sun, Dec 25 2005 10:39 am
Subject: python coding contest
Hello,
we are hosting a python coding contest an we even managed to provide a
price for the winner...

http://pycontest.net/

The contest is coincidentally held during the 22c3 and we will be
present there.

https://events.ccc.de/congress/2005/wiki/Python_coding_contest

Please send me comments, suggestions and ideas.

Have fun,

--
Simon Hengel


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Tismer  
View profile  
 More options Dec 25 2005, 11:42 am
Newsgroups: comp.lang.python
From: Christian Tismer <tis...@stackless.com>
Date: Sun, 25 Dec 2005 17:42:34 +0100
Local: Sun, Dec 25 2005 11:42 am
Subject: Re: python coding contest

Simon Hengel wrote:
> Hello,
> we are hosting a python coding contest an we even managed to provide a
> price for the winner...

> http://pycontest.net/

Nice idea to have a contest, of course!

What I dislike a bit is the winning criterion:
Shortest possible Python module?
I'm envisioning lots of convoluted one-liners which
are more suitable to a different P-language... :-)

How about """best compromize between shortness and readibility
plus elegance of design"""?
Well, this slightly raises the skill level of the reviewers,
but will clearly make the results more enjoyable...

cheers - chris
--
Christian Tismer             :^)   <mailto:tis...@stackless.com>
tismerysoft GmbH             :     Have a break! Take a ride on Python's
Johannes-Niemeyer-Weg 9A     :    *Starship* http://starship.python.net/
14109 Berlin                 :     PGP key -> http://wwwkeys.pgp.net/
work +49 30 802 86 56  mobile +49 173 24 18 776  fax +49 30 80 90 57 05
PGP 0x57F3BF04       9064 F4E1 D754 C2FF 1619  305B C09C 5A3B 57F3 BF04
      whom do you want to sponsor today?   http://www.stackless.com/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simon Hengel  
View profile  
 More options Dec 25 2005, 12:05 pm
Newsgroups: comp.lang.python
From: Simon Hengel <si...@airlangen.de>
Date: Sun, 25 Dec 2005 18:05:37 +0100
Local: Sun, Dec 25 2005 12:05 pm
Subject: Re: python coding contest
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> I'm envisioning lots of convoluted one-liners which
> are more suitable to a different P-language... :-)

I feel that python is more beautiful and readable, even if you write
short programs.

> How about """best compromize between shortness and readibility
> plus elegance of design"""?

I would love to choose those criteria for future events. But I'm not
aware of any algorithm that is capable of creating a ranking upon them.
Maybe we can come up with a solution. Any ideas?

Cheers, Simon.

- --
python coding contest - http://www.pycontest.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDrtFhd4QlweXdn3ERAn7tAJ9PEpOdqyfDhvHo7+TVy7RravwA/QCg4g9g
TdCYEDqOsL5qxQarsUI7jow=
=/KN6
-----END PGP SIGNATURE-----


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Tismer  
View profile  
 More options Dec 25 2005, 12:29 pm
Newsgroups: comp.lang.python
From: Christian Tismer <tis...@stackless.com>
Date: Sun, 25 Dec 2005 18:29:27 +0100
Local: Sun, Dec 25 2005 12:29 pm
Subject: Re: python coding contest

Simon Hengel wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1

>> I'm envisioning lots of convoluted one-liners which
>> are more suitable to a different P-language... :-)
> I feel that python is more beautiful and readable, even if you write
> short programs.

>> How about """best compromize between shortness and readibility
>> plus elegance of design"""?
> I would love to choose those criteria for future events. But I'm not
> aware of any algorithm that is capable of creating a ranking upon them.
> Maybe we can come up with a solution. Any ideas?

Me neither :-)

Maybe a compromize proposal could be like this:

- Squeezing many lines into one using semicola does not help,
   the program will be expanded to use one statement per line

- blank lines are allowed and not counted if they are not
   needed as part of the code

- the length of names does not count, unless the code depends on it.

Some harmonization procedure might be applied to every solution
before counting lines, in order to avoid spectacular cryptic stuff.

I have no idea whether I'm serious about this.
Having this said, I'm trashing my one-liner :-))

if-it-doesn't-look-like-Python-it-is-not-Python - ly y'rs -- chris
--
Christian Tismer             :^)   <mailto:tis...@stackless.com>
tismerysoft GmbH             :     Have a break! Take a ride on Python's
Johannes-Niemeyer-Weg 9A     :    *Starship* http://starship.python.net/
14109 Berlin                 :     PGP key -> http://wwwkeys.pgp.net/
work +49 30 802 86 56  mobile +49 173 24 18 776  fax +49 30 80 90 57 05
PGP 0x57F3BF04       9064 F4E1 D754 C2FF 1619  305B C09C 5A3B 57F3 BF04
      whom do you want to sponsor today?   http://www.stackless.com/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Hochberg  
View profile  
 More options Dec 25 2005, 1:42 pm
Newsgroups: comp.lang.python
From: Tim Hochberg <tim.hochb...@ieee.org>
Date: Sun, 25 Dec 2005 11:42:50 -0700
Local: Sun, Dec 25 2005 1:42 pm
Subject: Re: python coding contest

These two would be easy to acomplish using something like:

def countchars(text):
     n = 0
     for line in text.split('\n'):
        n += len(line.strip())
     return n

This would ignore leading and trailing white space as well as blank lines.

Also makes

     a=5; b=10

measure as one character longer than

     a = 5
     b = 10

which can only be good.

> - the length of names does not count, unless the code depends on it.

Probably too hard.

> Some harmonization procedure might be applied to every solution
> before counting lines, in order to avoid spectacular cryptic stuff.

I thought the metric was characters, not lines. At least that's what the
'about' page says. You still get hit by leading whitespace on multiple
line programs though.

-tim


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Tismer  
View profile  
 More options Dec 25 2005, 2:21 pm
Newsgroups: comp.lang.python
From: Christian Tismer <tis...@stackless.com>
Date: Sun, 25 Dec 2005 20:21:02 +0100
Local: Sun, Dec 25 2005 2:21 pm
Subject: Re: python coding contest

Tim Hochberg wrote:
> Christian Tismer wrote:

...

Good point!

>> - the length of names does not count, unless the code depends on it.

> Probably too hard.

I don't want to reward people for using ultra-short, unreadable
variable names, but also not to enable them to code algorithms
by them :-)
My idea was to rename all variables by a simple transformation
of the code objects, with the side rule that the program still works.
This can be automated rather easily.

> I thought the metric was characters, not lines. At least that's what the
> 'about' page says. You still get hit by leading whitespace on multiple
> line programs though.

So why not simply count length of code objects? :-)
Plus count every changeable name as one, others by length.
Same for constants, so we don't get tricked by encoding
the whole program by a tuple engine :-)

ciao - chris

--
Christian Tismer             :^)   <mailto:tis...@stackless.com>
tismerysoft GmbH             :     Have a break! Take a ride on Python's
Johannes-Niemeyer-Weg 9A     :    *Starship* http://starship.python.net/
14109 Berlin                 :     PGP key -> http://wwwkeys.pgp.net/
work +49 30 802 86 56  mobile +49 173 24 18 776  fax +49 30 80 90 57 05
PGP 0x57F3BF04       9064 F4E1 D754 C2FF 1619  305B C09C 5A3B 57F3 BF04
      whom do you want to sponsor today?   http://www.stackless.com/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Martelli  
View profile  
 More options Dec 25 2005, 3:13 pm
Newsgroups: comp.lang.python
From: al...@mail.comcast.net (Alex Martelli)
Date: Sun, 25 Dec 2005 12:13:54 -0800
Local: Sun, Dec 25 2005 3:13 pm
Subject: Re: python coding contest
Christian Tismer <tis...@stackless.com> wrote:

   ...

> Maybe a compromize proposal could be like this:

> - Squeezing many lines into one using semicola does not help,
>    the program will be expanded to use one statement per line

> - blank lines are allowed and not counted if they are not
>    needed as part of the code

I would suggest that all whitespace (except within string literals)
should be ignored, as well.

Alex


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Martelli  
View profile  
 More options Dec 25 2005, 3:29 pm
Newsgroups: comp.lang.python
From: al...@mail.comcast.net (Alex Martelli)
Date: Sun, 25 Dec 2005 12:29:11 -0800
Local: Sun, Dec 25 2005 3:29 pm
Subject: Re: python coding contest
Tim Hochberg <tim.hochb...@ieee.org> wrote:

   ...

> These two would be easy to acomplish using something like:

> def countchars(text):
>      n = 0
>      for line in text.split('\n'):
>       n += len(line.strip())
>      return n

> This would ignore leading and trailing white space as well as blank lines.

However, it would still make
  a=23
"better" than
  a = 23
and there's really no reason for that.  I would instead suggest using
the tokenize module.

> > - the length of names does not count, unless the code depends on it.

> Probably too hard.

Ignoring the length of identifiers is easy if you're tokenizing anyway.
Checking if "the code depends on" the exact spelling of its identifiers
is a lot harder, admittedly -- you could try emitting a variant of the
code where all identifiers which are not builtins are systematically
replaced with 'x0001', 'x0002', etc, and verify that the variant still
passes the test, but it's definitely a nontrivial one.  I think we'll
have to accept the fact that the "shortest program" will use one-letter
identifiers for everything except builtins.

> > Some harmonization procedure might be applied to every solution
> > before counting lines, in order to avoid spectacular cryptic stuff.

> I thought the metric was characters, not lines. At least that's what the
> 'about' page says. You still get hit by leading whitespace on multiple
> line programs though.

Definitely, characters.  A high-granularity measure is essential to
reduce the chance of ties.  Even so there may well be equal-first-place
winners -- hope they're not solved in terms of first submission, since
submitting at 14:00 UTC is WAY easier for Europe residents (residents of
the Americas would have to go to bed VERY late, get up VERY early, or
spend extra effort setting up cron jobs), and that would bias everything
in a most unfair manner.

Alex


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
André  
View profile  
 More options Dec 25 2005, 5:58 pm
Newsgroups: comp.lang.python
From: "André" <andre.robe...@gmail.com>
Date: 25 Dec 2005 14:58:28 -0800
Local: Sun, Dec 25 2005 5:58 pm
Subject: Re: python coding contest
Neat idea!

I'm far from being a decent Python programmer but I managed (for fun)
to do it in a one-liner;  however, it was definitely longer (in term of
number of characters) than the more readable multi-line solution.

André


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tobias Bell  
View profile  
 More options Dec 25 2005, 6:57 pm
Newsgroups: comp.lang.python
From: Tobias Bell <tobias.b...@web.de>
Date: Mon, 26 Dec 2005 00:57:01 +0100
Local: Sun, Dec 25 2005 6:57 pm
Subject: Re: python coding contest
André schrieb:
> Neat idea!

Indeed

> I'm far from being a decent Python programmer but I managed (for fun)
> to do it in a one-liner;  however, it was definitely longer (in term of
> number of characters) than the more readable multi-line solution.

I made a readable version with 352 bytes and a non-readable with 290
bytes. But it's a really ugly lambda, map, reduce kludge. Looks like Perl.

> André

Tobias

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steven D'Aprano  
View profile  
 More options Dec 25 2005, 7:10 pm
Newsgroups: comp.lang.python
From: Steven D'Aprano <st...@REMOVETHIScyber.com.au>
Date: Mon, 26 Dec 2005 11:10:41 +1100
Local: Sun, Dec 25 2005 7:10 pm
Subject: Re: python coding contest

On Sun, 25 Dec 2005 18:05:37 +0100, Simon Hengel wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1

>> I'm envisioning lots of convoluted one-liners which
>> are more suitable to a different P-language... :-)
> I feel that python is more beautiful and readable, even if you write
> short programs.

>> How about """best compromize between shortness and readibility
>> plus elegance of design"""?
> I would love to choose those criteria for future events. But I'm not
> aware of any algorithm that is capable of creating a ranking upon them.

What is your algorithm for determining "shortest" program? Are you
counting tokens, lines or characters? Does whitespace count?

--
Steven.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rbt  
View profile  
 More options Dec 25 2005, 7:14 pm
Newsgroups: comp.lang.python
From: rbt <r...@athop1.ath.vt.edu>
Date: Sun, 25 Dec 2005 19:14:43 -0500
Local: Sun, Dec 25 2005 7:14 pm
Subject: Re: python coding contest

If whitespace and var names count, these things are going to be ugly :)

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Tismer  
View profile  
 More options Dec 25 2005, 7:50 pm
Newsgroups: comp.lang.python
From: Christian Tismer <tis...@stackless.com>
Date: Mon, 26 Dec 2005 01:50:10 +0100
Local: Sun, Dec 25 2005 7:50 pm
Subject: Re: python coding contest

Simon Hengel wrote:
>> I would suggest that all whitespace (except within string literals)
>> should be ignored, as well.
> Good point, but i assume that is not possible with regular expressions.

No, but a trivial task using the compiler.

they should have taken this as a second challenge :-)   -- chris

--
Christian Tismer             :^)   <mailto:tis...@stackless.com>
tismerysoft GmbH             :     Have a break! Take a ride on Python's
Johannes-Niemeyer-Weg 9A     :    *Starship* http://starship.python.net/
14109 Berlin                 :     PGP key -> http://wwwkeys.pgp.net/
work +49 30 802 86 56  mobile +49 173 24 18 776  fax +49 30 80 90 57 05
PGP 0x57F3BF04       9064 F4E1 D754 C2FF 1619  305B C09C 5A3B 57F3 BF04
      whom do you want to sponsor today?   http://www.stackless.com/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simon Hengel  
View profile  
 More options Dec 25 2005, 7:43 pm
Newsgroups: comp.lang.python
From: Simon Hengel <si...@airlangen.de>
Date: Mon, 26 Dec 2005 01:43:44 +0100
Local: Sun, Dec 25 2005 7:43 pm
Subject: Re: python coding contest
> I would suggest that all whitespace (except within string literals)
> should be ignored, as well.

Good point, but i assume that is not possible with regular expressions.

Cheers, Simon

--
python coding contest - http://www.pycontest.net/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steven D'Aprano  
View profile  
 More options Dec 25 2005, 7:58 pm
Newsgroups: comp.lang.python
From: Steven D'Aprano <st...@REMOVETHIScyber.com.au>
Date: Mon, 26 Dec 2005 11:58:49 +1100
Local: Sun, Dec 25 2005 7:58 pm
Subject: Re: python coding contest

Yes, but the question is, is two lines and 347 characters ugly enough to
win?

--
Steven.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simon Hengel  
View profile  
 More options Dec 25 2005, 7:56 pm
Newsgroups: comp.lang.python
From: Simon Hengel <si...@airlangen.de>
Date: Mon, 26 Dec 2005 01:56:54 +0100
Local: Sun, Dec 25 2005 7:56 pm
Subject: Re: python coding contest

> Definitely, characters.  A high-granularity measure is essential to
> reduce the chance of ties.  Even so there may well be equal-first-place
> winners -- hope they're not solved in terms of first submission, since
> submitting at 14:00 UTC is WAY easier for Europe residents (residents of
> the Americas would have to go to bed VERY late, get up VERY early, or
> spend extra effort setting up cron jobs), and that would bias everything
> in a most unfair manner.

Not sure what to do about it, is there something more fair
than first come first serve?

Cheers, Simon

--
python coding contest - http://www.pycontest.net/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simon Hengel  
View profile  
 More options Dec 25 2005, 8:07 pm
Newsgroups: comp.lang.python
From: Simon Hengel <si...@airlangen.de>
Date: Mon, 26 Dec 2005 02:07:42 +0100
Local: Sun, Dec 25 2005 8:07 pm
Subject: Re: python coding contest

> What is your algorithm for determining "shortest" program? Are you
> counting tokens, lines or characters? Does whitespace count?

like:
$wc -c seven_seg.py

At the moment we have to live with characters, and yes whitespace
characters do count. Sorry for that.

Have fun,

Simon Hengel

--
python coding contest - http://www.pycontest.net/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
André Malo  
View profile  
 More options Dec 25 2005, 8:21 pm
Newsgroups: comp.lang.python
From: André Malo <auch-ic...@g-kein-spam.com>
Date: Mon, 26 Dec 2005 02:21:11 +0100
Local: Sun, Dec 25 2005 8:21 pm
Subject: Re: python coding contest

* Steven D'Aprano wrote:
> is two lines and 347 characters ugly enough to win?

Nope. 3 lines / 179 chars here >:->
Yes, it's quite unreadable.

(The problem is that I need to find an internet cafe on 28/29th in order to
be able to submit)

nd
--
my @japh = (sub{q~Just~},sub{q~Another~},sub{q~Perl~},sub{q~Hacker~});
my $japh = q[sub japh { }]; print join       #########################
 [ $japh =~ /{(.)}/] -> [0] => map $_ -> ()  #            André Malo #
=> @japh;                                    # http://www.perlig.de/ #


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rbt  
View profile  
 More options Dec 25 2005, 8:43 pm
Newsgroups: comp.lang.python
From: rbt <r...@athop1.ath.vt.edu>
Date: Sun, 25 Dec 2005 20:43:49 -0500
Local: Sun, Dec 25 2005 8:43 pm
Subject: Re: python coding contest

Does positioning matter? For example, say I give it '123' is it ok to
output this:

1
2
3

Or does it have to be 123


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Hochberg  
View profile  
 More options Dec 25 2005, 9:05 pm
Newsgroups: comp.lang.python
From: Tim Hochberg <tim.hochb...@ieee.org>
Date: Sun, 25 Dec 2005 19:05:40 -0700
Local: Sun, Dec 25 2005 9:05 pm
Subject: Re: python coding contest

No. I have 8 lines and 175 chars at present. And, I expect that's gonna
get beaten.

-tim


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Hochberg  
View profile  
 More options Dec 25 2005, 9:14 pm
Newsgroups: comp.lang.python
From: Tim Hochberg <tim.hochb...@ieee.org>
Date: Sun, 25 Dec 2005 19:14:24 -0700
Local: Sun, Dec 25 2005 9:14 pm
Subject: Re: python coding contest

Is it necessary to keep the input parameter as 'input'? Reducing that to
a single character drops the length of a program by at least 8
characters. Technically it changes the interface of the function, so
it's a little bogus, but test.py doesn't check. (Personally I prefer
that if be illegal, but if it's legal I'll have to do it).

-tim


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rbt  
View profile  
 More options Dec 25 2005, 9:27 pm
Newsgroups: comp.lang.python
From: rbt <r...@athop1.ath.vt.edu>
Date: Sun, 25 Dec 2005 21:27:28 -0500
Local: Sun, Dec 25 2005 9:27 pm
Subject: Re: python coding contest

Tim Hochberg wrote:

> Is it necessary to keep the input parameter as 'input'? Reducing that to
> a single character drops the length of a program by at least 8
> characters. Technically it changes the interface of the function, so
> it's a little bogus, but test.py doesn't check. (Personally I prefer
> that if be illegal, but if it's legal I'll have to do it).

> -tim

isn't the word 'input' a special word anyway???

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simon Hengel  
View profile  
 More options Dec 25 2005, 9:33 pm
Newsgroups: comp.lang.python
From: Simon Hengel <si...@airlangen.de>
Date: Mon, 26 Dec 2005 03:33:19 +0100
Local: Sun, Dec 25 2005 9:33 pm
Subject: Re: python coding contest

> Is it necessary to keep the input parameter as 'input'? Reducing that to
> a single character drops the length of a program by at least 8
> characters. Technically it changes the interface of the function, so
> it's a little bogus, but test.py doesn't check. (Personally I prefer
> that if be illegal, but if it's legal I'll have to do it).

You may change input to something more short, like x. Everything that
passes the test, has a good chance to be accepted.

Cheers,

Simon Hengel

--
python coding contest - http://www.pycontest.net/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Justin Azoff  
View profile  
 More options Dec 25 2005, 9:42 pm
Newsgroups: comp.lang.python
From: "Justin Azoff" <justin.az...@gmail.com>
Date: 25 Dec 2005 18:42:17 -0800
Local: Sun, Dec 25 2005 9:42 pm
Subject: Re: python coding contest
>>> c=open("seven_seg.py").read()
>>> len(c)
251
>>> len(c.replace(" ",""))

152

:-)

Knowing me, I'll forget to submit it.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Remi Villatel  
View profile  
 More options Dec 25 2005, 9:47 pm
Newsgroups: comp.lang.python
From: Remi Villatel <maxilys@SPAMCOP_tele2.fr>
Date: Mon, 26 Dec 2005 03:47:02 +0100
Local: Sun, Dec 25 2005 9:47 pm
Subject: Re: python coding contest

André Malo wrote:
>>is two lines and 347 characters ugly enough to win?
> Nope. 3 lines / 179 chars here >:->
> Yes, it's quite unreadable.

I'm in for the second place with 4 lines / 228 chars.

> (The problem is that I need to find an internet cafe on 28/29th in order to
> be able to submit)

Do your best! I'd really like to see your code. Right now, 179 chars
doesn't seem enough for me to write a "Hello world".  ;-)

--
==================
Remi Villatel
maxilys_@_tele2.fr
==================


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 1 - 25 of 142   Newer >
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google