Question: Write a function, print_intersected(across, down) that tries to print out the two words intersected like in a crossword puzzle. The words can be intersected if
If the words have no letters in common then the following message should be printed.
Can't intersect the words!
For example:
| Test | Result |
| print_intersected('cross', 'word') | w o cross d |
| print_intersected('merrie', 'tester') | t merrie s t e r |
| print_intersected('super', 'computer') | c o m p super t e r |
| print_intersected('computer', 'nerds') | n computer r d s |
| print_intersected('engine', 'eggnog') | engine g g n o g |
| print_intersected('vw', 'tiguan') | Can't intersect the words! |
Python3+ language, thanks!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
