Write a Python program that repeatedly asks the user to enter a list of numbers or strings.
Question:
Write a Python program that repeatedly asks the user to enter a list of numbers or strings. The items do not need to be all the same type. If the user does not enter a list of a length that is not a multiple of 3, then the program asks the user to enter a different list.
Your program slices the list into 3 equal parts (each of which will be a list). Your program then reverses the contents of each of these parts. Finally, your program displays a list composed of those 3 reversed parts. Your program repeats until the user enters an empty list.
Use a fruitful function to perform the splitting and reversing. Your main driver code should handle the input/output and looping.
Run your program several times using different inputs – sufficient to demonstrate that your program meets all the assignment requirements.
Sample output below:
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch