Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

string
python
uppercase
communitycreator

How does upper() work in Python?

Hassan Ahmed

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)

RELATED TAGS

string
python
uppercase
communitycreator
RELATED COURSES

View all Courses

Keep Exploring