Web Analytics

Python str.upper() Method

String Method Case Conversion

The upper() method returns a string where all characters are in upper case. Symbols and numbers are ignored.

Syntax

string.upper()

Parameters

No parameters.

Return Value

A string.

Example

Using the upper() method:

Output
Click Run to execute your code

Related Functions