Converting Strings to UPPERCASE ?

eric jones eric at enthought.com
Tue Sep 18 05:31:46 CEST 2001


Hey Peter,

string.upper should do the trick

>>> import string
>>> string.upper('abcd')
'ABCD'

eric

"Peter Moscatt" <pmoscatt at iprimus.com.au> wrote in message
news:3ba6bd0e at news.iprimus.com.au...
> I am having difficulty in converting a string to Upercase - how is this
best
> achieved ??
>
> Pete
>
>
>





More information about the Python-list mailing list