I have the following task description: Using an array, shopping_list, write the code to print the following words in sorted order: "potato", "cucumber", "banana", "persimmon".
Here is what I tried:
shopping_list = ["potato", "cucumber", "banana", "persimmon"]
shopping_list.sort
puts shopping_list
Why is this being marked incorrect?