Question: Please help asap! Will upvote :) This is in python. 144. venomelevengers. comasdf (broke rule 5) 942. hyperion@avengers. com (breaks rule 1 , incorrect number

Please help asap! Will upvote :) This is in python. 144. venomelevengers.comasdf (broke rule 5) 942. hyperion@avengers. com (breaks rule 1 , incorrectnumber in front) 567.greengoblinglasheild.gov (breaks rule 2, too many letters) 324drdoom324@avengers.com (breaksPlease help asap! Will upvote :) This is in python.

144. venomelevengers. comasdf (broke rule 5) 942. hyperion@avengers. com (breaks rule 1 , incorrect number in front) 567.greengoblinglasheild.gov (breaks rule 2, too many letters) 324drdoom324@avengers.com (breaks format established in 1 (does not have ".") 765. Hosborn*876(asheild.gov (breaks rule 3, has something other than numbers after name and between "(a" symbol) 234. vulture(asheild.com (breaks rule 4 , not correct ending) ANY other format should not count as a valid email. Spaces before or after an otherwise valid email is considered invalid. Because we are looking for the entire string to be an email, you can either use and $ to force a match to be at the beginning and end a string, or you can use or Problem 2: Groups Wow, there are a lot of problems on your first day, the list of Heros and their vehicles have been lost. Luckily you have some transcripts that have the students and their ships. Fill in function problem 2 to return a tuple of the student's name and the spaceship that the student drives. A transcript would have the format Super Hero rides/flies a vehicle and will have the following conditions: 1. A Super Hero's name can be one word, or two words. The word or words in a name must start with a captial letter. 2. The verb can be either "rides" or "flies" 3. If the vehicle has a Name (first letter is capitalized), it can be two words. If the vehicle does not have a name, it will be one word and contain all lowercase letters. 4. If the above conditions are both not met, there is no match. You will then return a tuple of strings ("nohero", "noname") Example: 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 . This function should search an input string for the student and ship then return a tuple of them. you should return: If you pass in: No one rides a Harley like Ghost Rider, athough Spider Man rides a Harley with some similar expertise you should return: This is because No one did not have a capitalized first letter in the word preceding "rides" If you pass in: starlord flies many ships, but Rocket flies a warbird special much faster you should return: This is because No one did not have a capitalized first letter in the word preceding "rides" If you pass in: starlord flies many ships, but Rocket flies a warbird special much faster you should return: vehicle has a 2 word name - both Warbird and Special are capitalized If you pass in: you should return: vehicle does not have a name - returned value is just one word and lowercase Be careful not to return extra spaces in the return value. 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 spaces. Please remove extra spaces for full credit. Problem 3: Substitution 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

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!