sajad torkamani
fruits = ["apple", "banana", "cherry", "kiwi", "mango"]
capitalized_fruits = [fruit.upper() for fruit in fruits]

print(capitalized_fruits)
# ['APPLE', 'BANANA', 'CHERRY', 'KIWI', 'MANGO']

Tagged: Python

Leave a comment

Your email address will not be published. Required fields are marked *