Bài tập String - Cơ bản
Các bài tập về String Methods và Formatting - Cơ bản
def to_uppercase(text):
# Code của bạn ở đây
pass
# Test
print(to_uppercase("hello world")) # "HELLO WORLD"def count_spaces(text):
# Code của bạn ở đây
pass
# Test
print(count_spaces("Hello World Python")) # 2def starts_with_vowel(text):
# Code của bạn ở đây
pass
# Test
print(starts_with_vowel("apple")) # True
print(starts_with_vowel("banana")) # FalseLast updated