Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

1a here will be at least one occurrence ne mar, er, 15 # line of text. Put the answer in the variable 'replaced'. 16 #

image text in transcribed
1a here will be at least one occurrence ne mar, er, 15 # line of text. Put the answer in the variable 'replaced'. 16 # Hint: You can find out the length of a string by command # len(string). We might test your code with different markers! 18 19 # Example 1 20 marker "AFK" 21 replacement "away from keyboard" 24 # Example 2-uncomment this to test with different input 27 "line,"The eruption ofthe volcano EY n 2010 disrupted air travel in Europe for 6 days." 22 line"I will now go to sleep and be AFK until lunch time tomorrow." 23 25 #marker.. "EY" 26 #replacement-"Eyjafjallajokull" 28 29 ### 3e # YOUR CODE BELOW, DO NOT DELETE THIS LINE 31 ### 32 33 replaced-line(0:27]+"be"-replacement[ line[33:] 34 35 print replaced 36. # Example 1 output should be: 37 #>>> I will now go to sleep and be away from keyboard until lunch time tomorrow. 38. # Example 2 output should be: 39 ">> The eruption of the volcano Eyjafjallajokull in 2010 disrupted air travel in Europe for 6 days our submission did not return the correct result for the input:Your submission passed 0 out of 3 test cases

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

=+(0

Answered: 1 week ago