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]
# 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.