Question: Write a recursive Python function named find_import_statements ( code_str ) that finds and returns the first import ast object in a given code string, code_str.



Write a recursive Python function named find_import_statements ( code_str ) that finds and returns the first import ast object in a given code string, code_str. If no import type statements are used in the provide code string, your function should return None . A non-recursive solution will receive zero grade, even if it may function correctly. Run the following code to get familias with how the ast module works. RUN THE FOLLOWING CODE TO DEFINE AN EXAMPLE CODE STRING! PROVIDE YOUR ANSWER IN THE FOLLOWING CODE CELL END OF EXAM
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
