7 lines
264 B
Python
7 lines
264 B
Python
words = ["huge", "great", "tremendous", "fake news"]
|
|
|
|
# Strings in Großbuchstaben umwandeln und "!" anhängen
|
|
result = list(map(lambda word: word.upper() + "!", words))
|
|
|
|
print("Ergebnis:", result)
|
|
#assert result == ["HUGE!", "GREAT!", "TREMENDOUS!", "FAKE NEWS!"] |