Skip to content

📝[Docs]: Add Practice Questions Section to Conditional Statements in Python Documentation Page #707

@codewithdhruba01

Description

@codewithdhruba01

Is there an existing issue for this?

  • I have searched the existing issues

Issue Description

The “Conditional Statements in Python” documentation currently provides syntax and examples for if, elif, and else statements. However, it lacks practice questions, which are essential for learners to apply their knowledge and build confidence.

Adding a “Practice Questions” section at the end of the page will make the documentation more interactive, especially for beginners.

Suggested Change

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

  • Include 5–8 practice questions covering different conditional use cases such as:

    • Basic if conditions
    • Multiple conditions with elif and else
    • Nested if statements
    • Conditional logic with user inputs
    • Real-life decision-making problems (e.g., grading systems, age checks)
  • Follow the same styling and formatting as the existing documentation.

  • Optionally, add collapsible “Show Answer” sections for each question.

Rationale

Benefits:

  • Encourages hands-on practice and deeper understanding of conditional logic.
  • Makes the page more engaging for self-learners.
  • Good entry point for contributors to add more questions or solutions in future PRs.

🏷️ 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