PythonStringupper

upperString

lower

Returns the string converted to uppercase.

Syntax

str.upper()

Example

Enter values below to update the example in real time.

name
print
HELLO
WORLD
name = "hello world"
print(name.upper())  # HELLO WORLD