3 ms·
The first example could be written as: colors = ["Goldenrod", "Purple", "Salmon", "Turquoise", "Cyan"] normalized_colors = map(str.casefold, colors)
by jwilk 8y ago
The first example could be written as:
colors = ["Goldenrod", "Purple", "Salmon", "Turquoise", "Cyan"]
normalized_colors = map(str.casefold, colors)