Question: please solve in python 3 asap Task A ninja word is a word which hides in a sentence: it will appear continuousy, but must be

please solve in python 3 asap please solve in python 3 asap Task A ninja word is a

Task A ninja word is a word which hides in a sentence: it will appear continuousy, but must be broken up by one or more spaces. For example, the word "star" is a ninja word in the phrase "best artibt", but is Not a ning wordin the phrase twinlle twinbie Irtle star: 'Ninja words must be hidden, and thus always contain spoces). Ninja words and the sentences they appear in will always be case insensitive. In addition, sentences may contain ninja stars (denoted with an asterisk 7 ? Ninja stars can be any character, including a space. Given a list of porsible ninja words, and a target sentence, return the score of the ninja words that appear in the sentence, according to the rules below. Inputs targetwords: A list of possible ninja words - e.g. [Sun", Moon', Siar:, "Planen"] sentence: A target senterce which may contain ninjs words - Sentences will cortain Ascil characters Ab-zz, spaces, and asteriss - egu. "Wi the stars under the sky swinkie in slo mo on a cleor night" Output Determine the score of the uncovered ninje words according to the following nules: - 1 point for every ninja word found - 1 addicional point for each ninja star contained in the word - innjatio 1 point 6 +nja3 points - Each niry word should only be counted once per xentence if a nirya word appeari multiple times, only councthe invarice which gives the most points

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!