PYTHON CIRCLE
Practice
Python Books
Archive
Subscribe
Login
Menu
Login
Practice
Python Books
Archive
Subscribe
Blog available for sell
This blog is available for sale. Please 'contact us' if interested.
Advertise with us
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.
© 2024-2025 Python Circle
Contact
Sponsor
Archive
Sitemap