Exercise: Create list



examples/lists/create_list_skeleton.py
lines = [
    'grape banana mango',
    'nut orange peach',
    'apple nut banana apple mango',
]

# ....

print(fruits)

# ....

print(unique_fruites)

['grape', 'banana', 'mango', 'nut', 'orange', 'peach', 'apple', 'nut', 'banana', 'apple', 'mango']

Then create a list of unique values sorted in alphabetical order.

Expected result:


['apple', 'banana', 'grape', 'mango', 'nut', 'orange', 'peach']