Question: help asap Oh no! Someone has changed these audio transcripts from mission reports. You must correct the super hero name! Replace the word Boy/Girl or

help asap
help asap Oh no! Someone has changed these audio transcripts from mission
reports. You must correct the super hero name! Replace the word Boy/Girl

Oh no! Someone has changed these audio transcripts from mission reports. You must correct the super hero name! Replace the word Boy/Girl or boy/girl with Man/Woman. Fill in the function to returns a string with the correct word restored. Here are the rules for replacement 1. Boy/Girl or boy/girl should be replaced with Man/Woman if the word prior to it is a name (starts with a captial letter) 2. If no match is found, return "nomatch" Here are some examples: Spider 6irl, I need help! Should return Spider wonan, I need help! There is a boy trapped in a burning building Iron Boy Should return There is a boy trapped in a burning building Iron Man This is because the first boy is not proceeded by a word that has a Copital letter Be careful not to return extra spaces in the final output. You may need to do a little bit of extra processing of the string captured by your group to ensure this. You will receive partial credit for having unwanted spaces. Please remove extra spaces for full credit. The Wasp rides the wind, but Iron Man rides a quinjet Although there is the phrase "Wasp rides" it does not have "a" following the word "rides". Therefore, your program needs to keep looking for the correct pattern. This pattern is found in "Iron Man rides a Quinjet". The correct output of the problem2 would be ("Iron Man", Quinjet) Fill in the function problen2. This function should search an input string for the student and ship then return a tuple of them. Captain America rides a Harley you should return: ("captain Anerica', 'Harley') If you pass in: Ho one rides a Harley like Ghost Rider, athough Spider Man rides a Harley with some similar expertise you should return: ("spider Man", "Harley") This is becouse No one did not hove a capitalized first letter in the word preceding "rides" If you pass in: 5tarlord flies many ships, but Rocket flies. Warbird Special much faster you should return: ("Rocket', 'Warbird spectal')

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!