Home / MCQ Bank / Computer
Computer Module In Python Difficulty: Medium

What does the dir() function in Python do?

Select the correct option to test your answer:

More Computer Questions

Which algorithm in C++ STL is used to remove all occurrences of a value from a container? We can replace a font on all sides with another font using the...... option Which language does MS-Word use to create Macros? What will be the output of the following Python code? data = [[[1, 2], [3, 4]], [[5, 6], [7, 8]]] print(data[1][0][0]) What will be the output of the following C++ code? #include <iostream> using namespace std; int main() { int x = -1; unsigned int y = 2; if(x > y) { cout << "x is greater"; } else { cout << "y is greater"; } }