Python String upper() Method

Last Updated : 5 Jan 2026

Python upper() method converts all the character to uppercase and returns a uppercase string.

Syntax of Python String upper() Method

It has the following syntax:

Parameters

No parameters

Return

It returns a string.

Different Examples for Python String upper() Method

Let's see some examples of upper() method to understand it's functionality.

Example 1

First see a simple example of upper() method. This method returns a uppercase string.

Output:

HELLO JAVATPOINT

Example 2

See, how can we use this method in programming. The below example converts all the elements of the list into uppercase. See the example.

Output:

 IRFAN
SOHAN
MOHAN

Example 3

An example that converts all the string into uppercase which starts with vowels. See the example below.

Output:

IRFAN
AMAN
 
Next TopicPython Strings