13 lines
372 B
Python
13 lines
372 B
Python
#!/usr/bin/env python
|
|
|
|
"""Basic sorting example"""
|
|
|
|
fruit = ["pomegranate", "cherry", "apricot", "date", "Apple", "lemon", "Kiwi",
|
|
"ORANGE", "lime", "Watermelon", "guava", "papaya", "FIG", "pear", "banana",
|
|
"Tamarind", "persimmon", "elderberry", "peach", "BLUEberry", "lychee",
|
|
"grape"]
|
|
|
|
sorted_fruit = sorted(fruit) # <1>
|
|
|
|
print(sorted_fruit)
|