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

1 Expert Approved Answer
Step: 1 Unlock

Heres a Python program that meets your requirements python userinput inputEnter a ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!