Change string case to upper in Python

Change string case to upper

We can change the string to upper case with upper method. It has the following syntax.

s.upper()

Converts all letters to uppercase.


quote = "Python is easy to use."
print quote
print quote.upper()
print quote

The code above generates the following result.





















Home »
  Python »
    Data Types »




Data Types
String
String Format
Tuple
List
Set
Dictionary