1.

To obtain a list of all the functions defined under sys module, which of the following functions can be used?(a) print(sys)(b) print(dir.sys)(c) print(dir[sys])(d) print(dir(sys))

Answer» Right option is (d) print(dir(sys))

Easy explanation - The function print(dir(sys)) helps us to obtain a list of all the functions defined under the sys module. The function can be used to obtain the list of functions under any given module in Python.


Discussion

No Comment Found