Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #19867 > unrolled thread
| Started by | Alec Taylor <alec.taylor6@gmail.com> |
|---|---|
| First post | 2012-02-05 22:49 +1100 |
| Last post | 2012-02-06 08:15 +1100 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
[Perl Golf] Round 1 Alec Taylor <alec.taylor6@gmail.com> - 2012-02-05 22:49 +1100
Re: [Perl Golf] Round 1 Ben Finney <ben+python@benfinney.id.au> - 2012-02-06 08:15 +1100
| From | Alec Taylor <alec.taylor6@gmail.com> |
|---|---|
| Date | 2012-02-05 22:49 +1100 |
| Subject | [Perl Golf] Round 1 |
| Message-ID | <mailman.5442.1328442586.27778.python-list@python.org> |
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
[toc] | [next] | [standalone]
| From | Ben Finney <ben+python@benfinney.id.au> |
|---|---|
| Date | 2012-02-06 08:15 +1100 |
| Message-ID | <87r4y93rti.fsf@benfinney.id.au> |
| In reply to | #19867 |
Alec Taylor <alec.taylor6@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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web