Секція 1. Розділ 6
single
Challenge: Word Counter
Свайпніть щоб показати меню
Завдання
Проведіть, щоб почати кодувати
Write a function that counts how many times a specific word appears in a sentence.
- Receive a
sentenceand awordas arguments. - Count the number of times
wordappears insentencewhen splitting the sentence into words by whitespace. - Return the count as an integer.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 6
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат