← Back to the lesson: List Comprehensions
Transform List
The exercise
Given: words = ["hello", "world", "python"]
Create a new list with all words in uppercase.
Use list comprehension with .upper()
Result: ["HELLO", "WORLD", "PYTHON"]
Starter code
words = ["hello", "world", "python"]
# Create uppercase list / Создайте список в верхнем регистре
upper_words =
# Print / Выведите
Write the code in the browser and run it — no installation needed.