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?

  1. It allows for code reusability to be achieved.
  2. By utilizing loops, we avoid having to write the same code over and over again.
  3. We can traverse through the elements of data structures by utilizing looping.
  4. 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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.