Ask the user to copy and paste their text, count the amount of words in the text and print out results
def count_words(): user_text = input('Please copy and paste your text: ') user_text = user_text.split() count = 0 for word in user_text: count += 1 print('There are {} words in the text'.format(count)) count_words()