Question: I need to write a code for python that will move a cursor '^' based on its position in a string. the user should input
I need to write a code for python that will move a cursor '^' based on its position in a string. the user should input "move (the desired position(which is a number from 0-90)" and then reprint the string with the cursor in the new position. To be clear the command should be in the format "move 45" which would move the cursor to the 45th position in the string. Here is what the sample execution should look like.

Welcome to the CS 1064 Text Editor. open example .txt Abbott You throw the ball to first base Costello: Then who gets it? Abbott Naturally. Costello: Naturally move 45 Abbott You throw the ball to first base. Costello: Then who gets it? Abbott Naturally Costello: Naturally move 49 Abbott You throw the ball to first base Costello: Then who gets it? Abbott Naturally Costello Naturally Sera Se Abbott You throw the ball to first base Costell: Then who gets it? 0: 41 I l 4 2 69 I 70 88 I 89 109 I 0 411 I 42 69 I 70 88 89 109 I 0: 41 I l 42: 69 I I 70 88 I 89 109 41 I 42 68
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
