Convert string to uppercase Python

In this Python string tutorial, you will learn how to convert string to uppercase in Python.

# Create a string
S = "Artificial Intelligence"

# Convert string into uppercase
U = S.upper()

# Print uppercase
print(U)

Output:

ARTIFICIAL INTELLIGENCE

Free learning resources: AiHintsCodeAllow

Leave a Comment

Your email address will not be published.