Question: Create a Python program stored in a file L4q4.py that:that takes a string variable as input from the user and prints the length of the
Create a Python program stored in a file L4q4.py that:that takes a string variable as input from the user and prints the length of the entry on the next line. If the length of the entry is even, print all the characters that are in the even position. If the length of the entry is odd, print all the characters that are in the odd position. Add an empty line. On the following line, print the index of each character under the corresponding character.
Step by Step Solution
There are 3 Steps involved in it
Heres a Python program that meets your requirements python userinput inputEnter a ... View full answer
Get step-by-step solutions from verified subject matter experts
