Skip to content

📝[Docs]: Add Practice Questions Section to Loops in Python Documentation Page #706

@codewithdhruba01

Description

@codewithdhruba01

Is there an existing issue for this?

  • I have searched the existing issues

Issue Description

The current “Loops in Python” documentation explains concepts clearly with syntax and examples. However, it lacks practice questions that learners can solve to test their understanding.

Adding a “Practice Questions” section at the end of the page will make the documentation more interactive and beginner-friendly.

Suggested Change

  • Add a new “Practice Questions” section at the bottom of the page.

  • Include 5–8 questions ranging from basic to slightly intermediate difficulty.

  • Provide questions such as:

    • Looping through lists and strings
    • Using range()
    • Applying break and continue statements
    • Nested loops and pattern printing
  • Keep the format consistent with the rest of the documentation.

  • Optionally, provide a collapsible “Show Answer” section for each question.

Rationale

Benefits:

  • Helps learners practice what they learned directly after reading.
  • Makes the page more engaging and suitable for self-learners.
  • Encourages contributions from the community (e.g., adding more questions later).

🏷️ Labels:

enhancement documentation hacktoberfest

Urgency

High

Record

  • I have read the Contributing Guidelines
  • Are you a GSSOC'25 contributor
  • I want to work on this issue

Metadata

Metadata

Type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions