[Tutor] regexes, thanks
Magnus Lycka
magnus@thinkware.se
Tue Nov 19 06:21:13 2002
At 22:52 2002-11-18 -0500, Matt wrote:
> return(string.capitalize(a))
return is a statement, not a function. Please write
return XXX
NOT
return(XXX)
It doesn't change the way things work, but there is no
more reason to type "return(xxx)" than to type "print(xxx);"
See PEP 8
--
Magnus Lycka, Thinkware AB
Alvans vag 99, SE-907 50 UMEA, SWEDEN
phone: int+46 70 582 80 65, fax: int+46 70 612 80 65
http://www.thinkware.se/ mailto:magnus@thinkware.se