[Tutor] python challenges
D. Hartley
denise.hartley at gmail.com
Fri May 6 02:10:12 CEST 2005
I seem to have lost the original link, but thanks to whoever posted
the url for the python challenges. I've been working through them and
they've made for a fun afternoon :) I even came up with a really
elegant solution for #2 that I was really proud of - being new to
python, very often I find problem solutions that work but are ugly
and/or convoluted, and I always know there's a better way. I think my
mental structuring must be improving with practice. ;)
I do have one question, however. I'm on riddle 3 ("re"), and got sent
to the howto about regular expressions by the hint. But it did not
seem (at least to me) very user-friendly: or perhaps I'm just not
applying it to the problem correctly. I can see how I would use it if
I were matching an exact bit of a string, for instance (like the
"search" method), but if I'm checking for a series of cap/lowercase
letters (but am not particular which character), I can't figure out
how to use regular expressions to help me out.
Anyone have a gentle hint, or pointer to another 'beginner' tutorial
to regular expressions?
Thanks! I dont want to get stuck here in the riddles!
~Denise
More information about the Tutor
mailing list