Finding Function Names
Write a function called function names that takes as a parameter a file open for reading, and returns a list of all of the function names in that file. Remember that function definitions have a very specific format: def function name(parameters). You can assume that all functions are exactly correctly formatted according to PEP-8 standards. e.g., 1 space after the def, no space before the (.
My work will be assesed using the following code to see if it works:
file_handle = open(....)
result = your_function(file_handle)
assert(result = expected_result)
If any clarifications are needed let me know. Thanks for the help.