Python String upper() Method

❮ String Methods


Example

Upper case the string:

txt = "Hello my friends"

x = txt.upper()

print(x)
Try it Yourself »

Definition and Usage

The upper() method returns a string where all characters are in upper case.

 Symbols and Numbers are ignored.


Syntax

string.upper()

Parameter Values

No parameters


❮ String Methods

Copyright 1999-2023 by Refsnes Data. All Rights Reserved.