Question: Write a Python program that asks the user for a number (an integer) and then asks for three (3) words one at a time. After
Write a Python program that asks the user for a number (an integer) and then asks for three (3) words one at a time. After receiving all three words, the program prints each of the input words if their length is a multiple of the first input number. Note: Python contains a len(x) function, which returns the number of characters in the argument string x. For example, if the user enters 3, kitten, rewards and cat, the program would output kitten and cat, because their lengths are each multiples of 3. (kitten has length 6 and cat has length 3). The word rewards, with length 7, would not be printed.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
