[Perl Golf] Round 1
One sentence can contain one or more strings next to each-other, which can be joined to make another word. e.g.: to get her == together an other == another where about == whereabouts etc Solve this problem using as few lines of code as possible[1]. Good luck! [1] Don't use external non-default libraries; non-custom word-lists excepted -- http://mail.python.org/mailman/listinfo/python-list
Re: [Perl Golf] Round 1
Am 05.02.2012 12:49, schrieb Alec Taylor: Solve this problem using as few lines of code as possible[1]. Pardon me, but where's the problem? If your intention is to propose a challenge, say so, and state the associated problem clearly. -- --- Heiko. -- http://mail.python.org/mailman/listinfo/python-list
Re: [Perl Golf] Round 1
Alec Taylor alec.tayl...@gmail.com writes: One sentence can contain one or more strings next to each-other, which can be joined to make another word. e.g.: to get her == together an other == another where about == whereabouts etc Yes, that's true. Solve this problem using as few lines of code as possible[1]. Easy:: True Good luck! What do I win? -- \“All opinions are not equal. Some are a very great deal more | `\ robust, sophisticated, and well supported in logic and argument | _o__) than others.” —Douglas Adams | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list
Re: [Perl Golf] Round 1
Heiko Wundram wrote: Am 05.02.2012 12:49, schrieb Alec Taylor: Solve this problem using as few lines of code as possible[1]. Pardon me, but where's the problem? If your intention is to propose a challenge, say so, and state the associated problem clearly. But this really misses the point. Python is not about coming up with some clever, cryptic, one-liner to solve some problem. It's about clear code. If you want clever, cryptic, one-liner's stick with perl. -- http://mail.python.org/mailman/listinfo/python-list
Re: [Perl Golf] Round 1
Am 05.02.2012 23:15, schrieb Neal Becker: Heiko Wundram wrote: Am 05.02.2012 12:49, schrieb Alec Taylor: Solve this problem using as few lines of code as possible[1]. Pardon me, but where's the problem? If your intention is to propose a challenge, say so, and state the associated problem clearly. But this really misses the point. Python is not about coming up with some clever, cryptic, one-liner to solve some problem. It's about clear code. If you want clever, cryptic, one-liner's stick with perl. You're only allowed to bash him for one-liners as soon as he formulates something that in some way or another resembles a programming challenge, and not some incoherent listing of words without actual intent... ;-) -- --- Heiko. -- http://mail.python.org/mailman/listinfo/python-list
Re: [Perl Golf] Round 1
On Mon, Feb 6, 2012 at 10:03 AM, Heiko Wundram modeln...@modelnine.org wrote: You're only allowed to bash him for one-liners as soon as he formulates something that in some way or another resembles a programming challenge, and not some incoherent listing of words without actual intent... ;-) Nah, one-liners are fun. Look, here's a Python one-liner that generates a month's worth of emails: t = ('a', [23]); t[1] += [42] *ducks for cover* ChrisA -- http://mail.python.org/mailman/listinfo/python-list