Duplikat daftar dengan huruf kecil di Python
colors = ['Red', 'Blue', 'Green', 'Purple']
lower_colors = [ ]
for color in colors:
lower_colors.append(color.lower())
print(lower_colors)
#output - ['red', 'blue', 'green', 'purple']
Rajitha Amarasinghe