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?