PYTHON CIRCLE
Practice
Python Books
Archive
Subscribe
Login
Menu
Login
Practice
Python Books
Archive
Subscribe
Python Multiple Choice Questions
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))
Show Answer
Next Question
Correct Answer:
D
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.
© 2022-2023 Python Circle
Contact
Sponsor
Archive
Sitemap