THE QUESTION
Text from the official booklet. Refer to the PDF for original mathematical notation, formatting, and linked input files. Printed samples and inputs are reproduced as published.
Create a function that takes a string and returns the number of words in that string (a ‘word’ is defined by any character separated by ‘punctuation’) punctuation = [' ', ',', '.', '!', '?', '-'] Input: string1 = "AH-pateu apateu, apateu apateu, apateu apateu, ugh, ahah ahah!"