How does upper() work in Python?

The upper() method in Python is used to return a string, with all the characters of the string calling the method in uppercase.

Syntax

string.upper()

Parameters

This method does not require any parameters.

Example

x = "The charachters in this string will become uppercase."
x = x.upper()
print(x)

Free Resources