Home / MCQ Bank / Computer
Computer Introduction To Python

What is the purpose of a function in Python?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • To organize and reuse code

Related Computer Questions

Which operation in a Red-Black tree might require re-coloring of nodes? What will be the output of the following C++ code? #include <iostream> using namespace std; int main() { char* ptr; unsigned long int a = (size_t(0) / 3); cout << a << endl; try { ptr = new char[size_t(0) / 3]; delete[ ] ptr; } catch(bad_alloc &thebadallocation) { cout << thebadallocation.what() << endl; }; return 0; } What will be the output of the following C++ code? #include <iostream> using namespace std; int operate (int a, int b) { return (a * b); } float operate (float a, float b) { return (a / b); } int main() { int x = 5, y = 2; float n = 5.0, m = 2.0; cout << operate(x, y) <<"\t"; cout << operate (n, m); return 0; } Which one of the following function checks for the existence of DNS records? The number of options that can be used to control LOCAL capability at runtime is ______