Question
Line editor; creating a program with a few command lines in python. example: insert 5 - inserts an empty line at position 5. line 5
Line editor; creating a program with a few command lines in python.
example: insert 5 - inserts an empty line at position 5. line 5 will become line 6, 6 will become 7. etc. If there is no line from 1 to 4, then it'll be created by the command.
typeover 5
printall will print the contents from beginning to end.
When you first start the program, you must use insert to create a line/lines. then typeover, etc. readall to see what you have entered.
So it should be something like this;
please enter a command: insert 3
please enter a command: typeover 2
please enter a command: printall
1.
2. hello
3.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started