Question: solve in python only, all the test cases should pass. AI is giving wrong answers!!!!!! here are the test cases: testcase 1 : text =
solve in python only, all the test cases should pass. AI is giving wrong answers!!!!!!
here are the test cases:
testcase:
text
lol some text I guess
"here is the first paragraph
here is the second one
"some words here in the third one
"this is the last line
assert movecursor text,
assert movecursor text, W
assert movecursor text, WG
testcase:
text
lol some text I guess
"here is the first paragraph
here is the second one
"some words here in the third one
"this is the last line
try:
movecursor text, WG
except ValueError:
# first line is empty, there's no
pass
assert movecursor text, movecursor text,
testcase:
text
lol some text I guess
"here is the first paragraph
here is the second one
"some words here in the third one
"this is the last line
assert
movecursor text, hhhhhhhhhhhhhhhhhhhhhhhhhhh
movecursor text, h
testcase:
text
lol some text I guess
"here is the first paragraph
here is the second one
"some words here in the third one
"this is the last line
assert movecursor text, W
assert movecursor text, WB
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
