Question
PYTHON CODING THE PUZZLE IS GIVEN BELOW puzzle=[['S', 'C', 'Q', 'G', 'V', 'P', 'K', 'K', 'Y', 'A'], ['D', 'H', 'K', 'O', 'A', 'L', 'A', 'K',
PYTHON CODING
THE PUZZLE IS GIVEN BELOW
puzzle=[['S', 'C', 'Q', 'G', 'V', 'P', 'K', 'K', 'Y', 'A'], ['D', 'H', 'K', 'O', 'A', 'L', 'A', 'K', 'H', 'Z'], ['O', 'F', 'D', 'O', 'L', 'P', 'H', 'I', 'N', 'T'], ['G', 'Z', 'E', 'L', 'E', 'P', 'H', 'A', 'N', 'T'], ['D', 'B', 'U', 'T', 'T', 'E', 'R', 'F', 'L', 'Y'], ['P', 'E', 'N', 'G', 'U', 'I', 'N', 'M', 'E', 'Q'], ['L', 'X', 'E', 'A', 'R', 'A', 'B', 'B', 'I', 'T'], ['D', 'E', 'E', 'R', 'H', 'O', 'L', 'I', 'O', 'N'], ['P', 'A', 'N', 'D', 'A', 'N', 'X', 'W', 'Q', 'S'], ['B', 'R', 'I', 'Z', 'O', 'F', 'D', 'P', 'F', 'P']]
THIS IS WHAT THE PUZZLE PRINTS AS
Task 4: Check if a given word is in the puzzle Write a function named check_word (puzzle, word, row, col, orient) that returns True if the given word is in the puzzle starting at the given cell ( rOW,Col ) in the given orientation (orient) and False otherwise. SCQGVPKKYA DHKOALAKHZ D BUTTERFLY LXEARABBIT PANDANXWQS B I R | I | Z ZOFDPFPStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started