beautymold.com A little curiosity. A fuller life. Explore the journal
Menu

Title

Hello world here.

def count_words(text): import re # remove html tags clean = re.sub(r'<[^>]+>', ' ', text) words = clean.split() return len(words), words print(count_words("

Hello world here.

"))