Question: Write function called fill Crossword Line which takes two strings as arguments. *Arguments: 1) The first string represents a line in a crossword. It

Write function called fill Crossword Line which takes two strings as arguments.

Write function called fill Crossword Line which takes two strings as arguments. *Arguments: 1) The first string represents a line in a crossword. It has characters where dashes (-) represent a space for a word to be placed and pluses (+) represent places where a word can't be placed. For example: +------++ this string can fit a 6 letter word. +++----++ this string can fit a 4 letter word. ---++++ this string can fit a 3 letter word. 2) The second string represents a word to fit into the space within the first string. For example: The word "help" would fit into this String: "++----++" but wouldn't fit into "++------++" (too short) or -+++ **Return value: A string containing the completed crossword line Or None if the word doesn't fit. For example: +++----++ and "help" should return "++++help++" +-----+ and "help" should return None ---++++ and "help" should return None (too long).

Step by Step Solution

3.46 Rating (153 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Program def fillCrosswordLinecrosswordLineword In this function it takes two arguments cross... View full answer

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