Daily #17 · 15 October 2026
Alphabetical, sort of Medium
What does this print?
print(sorted(["banana", "Apple", "cherry", "Date"]))
Show the answer
B: ['Apple', 'Date', 'banana', 'cherry']
Why: Strings sort by character code, and every capital letter comes before every lower-case one. sorted(words, key=str.lower) sorts the way a person would.