Home »
MCQs »
Python MCQs
Amongst which of the following is / are true with reference to loops in Python?
50. Amongst which of the following is / are true with reference to loops in Python?
- It allows for code reusability to be achieved.
- By utilizing loops, we avoid having to write the same code over and over again.
- We can traverse through the elements of data structures by utilizing looping.
- All of the mentioned above
Answer: D) All of the mentioned above
Explanation:
Following point's shows the importance of loops in Python.
- It allows for code reusability to be achieved.
- By utilizing loops, we avoid having to write the same code over and over again.
- We can traverse through the elements of data structures by utilizing looping.