Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a bash script that produces a catalog of all functions in a set of Python source files named on the command line. The output
Create a bash script that produces a catalog of all functions in a set of Python source files named on the command line.
The output will be a sequence of lines of the form:
function_name file_name:line_number
Suppose for example that the file example.py had on line 7:
def foo(l):
Then for that line, the output of your script would say:
foo filename.py:7
The output should be sorted by the function name.
Step 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