python logo

upper python


Python hosting: Host, run, and code Python in the cloud!

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





Leave a Reply: