Bird
0
0

Why do we use loops in programming like Python?

easy📝 Conceptual Q11 of 15
Python - For Loop
Why do we use loops in programming like Python?
ATo store data permanently
BTo repeat actions multiple times without writing code again
CTo create new variables automatically
DTo stop the program from running
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of loops

    Loops help us do the same task many times without writing the same code repeatedly.
  2. Step 2: Compare options with loop purpose

    Only To repeat actions multiple times without writing code again matches this idea; others describe unrelated tasks.
  3. Final Answer:

    To repeat actions multiple times without writing code again -> Option B
  4. Quick Check:

    Loops repeat actions = To repeat actions multiple times without writing code again [OK]
Quick Trick: Loops repeat tasks to save writing code again [OK]
Common Mistakes:
MISTAKES
  • Thinking loops store data permanently
  • Confusing loops with variable creation
  • Believing loops stop program execution

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Python Quizzes