Question: Hello, I'd like some help on my Python course, been stuck on it for a while and would like a solution, I have listed at

Hello, I'd like some help on my Python course, been stuck on it for a while and would like a solution, I have listed at the bottom my own personal attempt and what is wrong with it.

Instructions:

Proj06 file needs to be run using a seperate file called Proj06runner, Proj06 cannot be edited at all and needs to ouput the code below. The proj06 file is listed below.

Output code:

The lazy brown fox jumped over the fence.

The

lazy

brown

fox

jumped

over

the

fence.

The lazy brown fox jumped over the fence.

o

The lazy br

wn f

x jumped

ver the fence.

(Proj06):

import Proj06Runner

str = 'The lazy brown fox jumped over the fence.' sep = ' ' #a space character

print('I certify that this program is my own work') print('and is not the work of others. I agree not') print('to share my solution with others.')

result = Proj06Runner.run(str,sep) for word in result: print(word)

print() str = 'The lazy brown fox jumped over the fence.' sep = 'o' #This is a lower-case O character

result = Proj06Runner.run(str,sep) for word in result: print(word)

If it helps at all this is what I have gathered up, however, the problem with my code is that it does not separate the text into separate lines.

def run(str, sep): return str,sep,str.split(sep)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!