Question: Python programming Screenshot plz Part III: Roth Pond Regatta (20 points) Write a function row boat ) that takes one argument, movements. which is a

 Python programming Screenshot plz Part III: Roth Pond Regatta (20 points)

Python programming Screenshot plz

Part III: Roth Pond Regatta (20 points) Write a function row boat ) that takes one argument, movements. which is a list of strings that represent movements of a race boat across Roth Pond The functions counts and returns an integer value of how far from the starting position the boat has traveled based on the characters that appear in the list. I. an Er means that the boat moves forward by I meter 2. a' Be means that the boat moves backward by 1 unit. If the boat is already at starting position, the boat does not move. 3. an' S means that hoat returns to its starting position. You may assume that the list of strings is always valid and consists of only the letters 'F. B' and S Examples: Return Value Function Call row.boatt('F', 'Fr ,,S, row boat('S,SS row.boat (['F', rF,, -B, , 8, , B' F.. )) S' ,B,, ,F. , , F, , ,B, , , F, , ,F] 3 Remember: Codel.oad has additional tests for you to try! Upload your code there and see hiow your code matches up against harder lests

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 Databases Questions!