471,330 Members | 1,209 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

making all letters Caps/Small Letters

Hi There,

I'm sure I have done this before, but cannot remember how, or find out
how to do it quickly - but is there a way/function/something in python
to make all the letters of a raw_input() string small/capital letters?

Thanks!

-- Merrigan
Dec 14 '07 #1
2 24573
"Merrigan" schrieb im>
I'm sure I have done this before, but cannot remember how,
or find out how to do it quickly - but is there a
way/function/something in python to make all the letters
of a raw_input() string small/capital letters?
"upper might help".upper()
"OR LOWER".lower()

HTH
Martin
Dec 14 '07 #2
On Dec 14, 11:30 am, Merrigan <charl.loub...@gmail.comwrote:
Hi There,

I'm sure I have done this before, but cannot remember how, or find out
how to do it quickly - but is there a way/function/something in python
to make all the letters of a raw_input() string small/capital letters?

Thanks!

-- Merrigan
as it's a string, it supports string functions.
..upper()
..lower()
Dec 14 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by John A Grandy | last post: by
6 posts views Thread by mygoogleaccount | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.