Question: Instructions Your task is to create function called parse goto that takes a string literal source code with unconditional jump gote and returns the output
Instructions
Your task is to create function called parse goto that takes a string literal source code with unconditional jump gote and returns the output of the code as a string
An example of the source code passed as an argument:The goto jump skips all the text between the jump and the line specified in the jump.Your task is to chain the text in the statements not omitted by jumps, using single spaces and ignoring the labels numbers
In this challenge there is no recursion and goto only jumps ahead.
Examples:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
