Skip to content

Latest commit

 

History

History
8 lines (5 loc) · 806 Bytes

File metadata and controls

8 lines (5 loc) · 806 Bytes

Exercises for Chapter 8

1. Read the section about Mod:module_info(). How many functions does dict have?

In exercise_1/ there is a module named dict_functions that contains a count function. The function will print the number of exported functions from the dict module.

2. Write a function to list all loaded modules. Write a function that finds the module with the most exported functions and one that finds the most common function name. Write another function to list unambiguous function names.

In exercise_2/ there is a module named module_functions that contains a print_export_details function. The function will print a list of all loaded modules, the module with the most exported functions, the most common function name, and a list of all unambiguous function names.