# Function to count words def count_words(text): words = text.split() # Split the text by spaces to get a list of words return len(words) # Return the number of word # Function to check if a character is alphabetic def is_alpha(char): # Check if the character is between 'a' and 'z' or 'A' and 'Z' return ('a'
# Function to count words
def count_words(text):
words = text.split() # Split the text by spaces to get a list of words
return len(words) # Return the number of word
# Function to check if a character is alphabetic
def is_alpha(char):
# Check if the character is between 'a' and 'z' or 'A' and 'Z'
return ('a'