Reading about Python? Actually practice it. Try PyChallenge free

Python Tutorial

String upper

Returns string in uppercase.

Syntax

The format is:
str.upper()

Parameters

None.

Example

s = "All work and no play makes Jack a dull boy. Jack?"
s = s.upper()
print(s)

Result:

ALL WORK AND NO PLAY MAKES JACK A DULL BOY. JACK?
BackNext

Practice
Stop reading. Start writing Python.
PyChallenge gives you interactive exercises in your browser — no install needed.
Practice Python with interactive exercises