Converting Strings to UPPERCASE ?

eric jones eric at enthought.com
Mon Sep 17 23:31:46 EDT 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