8 lines
186 B
Python
8 lines
186 B
Python
#!/usr/bin/env python
|
|
|
|
fruits = ['watermelon', 'Apple', 'Mango', 'KIWI', 'apricot', 'LEMON', 'guava']
|
|
|
|
sfruits = sorted(fruits, key=lambda e: e.lower()) # <1>
|
|
|
|
print(" ".join(sfruits))
|