In this problem, you should write one function named every_other. This function should have one parameter, which will be a

In this problem, you should write one function named every_other. This function should have one parameter, which will be a string with one or more space-separated words in it. The function should return a string with every-other word from the parameter string. I recommend that you follow these steps: (A) Split the parameter sting on the space character (use the string. split function) (B) Create a variable to store the shorter string (C) loop through every-other string form the list of words, concatenating them to the result string. (D) Return the result string


Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *