> I have to write a function that will return the index of a line like
this:
>
> gvcdgvcgdvagTVTVTVTVTVTHUXHYGSXUHXSU
>
> where it first becomes capital letters.
I'd go with a regex search for that one...
Alan g.
___
Tutor maillist - Tutor@python.org
On 26 May 2005 [EMAIL PROTECTED] wrote:
> One of the worst I think was doing loads of real spazzy stuff trying to
> split whole files in to lists of letters and use string methods to find
> the first uppercase one.
Hi Chris,
An approach like this might work. Rather than read the whole thing i
One of the worst I think was doing loads of real spazzy stuff trying to
split whole files in to lists of letters and use string methods to find the
first uppercase one.
The re tutorial has sorted it out for me. I figured this was the way to go,
I just couldn't work out how to get the index valu
On 26 May 2005 [EMAIL PROTECTED] wrote:
> I have to write a function that will return the index of a line like this:
>
> gvcdgvcgdvagTVTVTVTVTVTHUXHYGSXUHXSU
>
> where it first becomes capital letters. I've had about a hundred
> different ideas of the best way to do this, but always seem to hit