Published on January 26, 2024By DeveloperBreeze

# Define a list of words
words = ['hello', 'world', 'python']

# Use list comprehension to convert words to uppercase
uppercase_words = [word.upper() for word in words]

Comments

Please log in to leave a comment.

Continue Reading:

Python List Operations Cheatsheet

Published on October 24, 2024

python