> Date: Fri, 14 Jul 2006 16:43:32 +1200
> From: "John Fouhy" <[EMAIL PROTECTED]>
>
> Let me attempt to be the first to say:
>
> String substitutions!!!
>
> The docs are here: http://docs.python.org/lib/typesseq-strings.html
>
Thanks John, that looks way better. I'll also check out the page.
Alan
> Date: Fri, 14 Jul 2006 12:12:42 +0200
> From: J?nos Juh?sz <[EMAIL PROTECTED]>
> Subject: [Tutor] Help with strings and lists.
> To: <[EMAIL PROTECTED]>, tutor@python.org
> Message-ID:
> <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="i
Alan Collins wrote:
> Hi,
>
> I do a far bit of data manipulation and decided to try one of my
> favourite utilities in Python. I'd really appreciate some optimization
> of the script. I'm sure that I've missed many tricks in even this short
> script.
>
> Let's say you have a file with this data
Dear Alan,
Probably you will be interested
about list comprehension and zip(), as it can simplify all the similar
tasks.
>>> s = ('Monday 7373 3663657 2272 547757699
reached 100%','Tuesday 7726347 552 766463 2253 under-achieved 0%','Wednesday
9899898 8488947 6472 77449 reached 100%','Thursday 63
On 14/07/06, Alan Collins <[EMAIL PROTECTED]> wrote:
> You now want columns 1, 5, and 7 printed and aligned (much like a
> spreadsheet). For example:
>
> Monday547757699 100%
> Wednesday 77449 100%
Let me attempt to be the first to say:
String substitutions!!!
The docs are here: http://d
Hi,
I do a far bit of data manipulation and decided to try one of my
favourite utilities in Python. I'd really appreciate some optimization
of the script. I'm sure that I've missed many tricks in even this short
script.
Let's say you have a file with this data:
Monday 7373 3663657 2272 547757