Write word_count(sentence) that returns how many words the sentence has. Words are separated by spaces (there may be extra spaces).
word_count('I love data')
→ 3word_count(' hello world ')
→ 2Submit runs 4 tests, including hidden edge cases.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.