Skip to content

Add term entry for Single Inheritance in Python #7096

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Prankisster
Copy link

Description

This pull request adds a new term entry titled "Single Inheritance" under the path:
content/python/concepts/inheritance/terms/single-inheritance/single-inheritance.md

The entry includes:

  • A clear and concise definition of single inheritance in Python
  • A diagram illustrating the concept
  • A ## Syntax section with usage format
  • An ## Example with real-world context
  • A ## Codebyte section with runnable Python code
  • Proper metadata, subjects, tags, and catalog content
  • Compliance with Codecademy’s content, markdown, and style guidelines

Issue Solved

Closes #7078

Type of Change

  • Adding a new entry
  • Editing an existing entry (fixing a typo, bug, issues, etc)
  • Updating the documentation

Checklist

  • All writings are my own.
  • My entry follows the Codecademy Docs style guide.
  • My changes generate no new warnings.
  • I have performed a self-review of my own writing and code.
  • I have checked my entry and corrected any misspellings.
  • I have made corresponding changes to the documentation if needed.
  • I have confirmed my changes are not being pushed from my forked main branch.
  • I have confirmed that I'm pushing from a new branch named after the changes I'm making.
  • I have linked any issues that are relevant to this PR in the Issues Solved section.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

This commit adds a new term entry under `content/python/concepts/inheritance/terms/single-inheritance/`.
It includes:
- Metadata and SEO-optimized description
- Definition with clear examples
- Syntax section
- Visual diagram for understanding
- A runnable Codebyte in Python
- Cross-links to related concepts

Closes Codecademy#7078
@Prankisster Prankisster force-pushed the add/single-inheritance-python-term branch from 1f16320 to 936945e Compare June 13, 2025 07:20
Copy link
Collaborator

@mamtawardhani mamtawardhani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @Prankisster , thank you for contributing to Codecademy Docs, the entry is nicely written! 😄

I've suggested a few changes, could you please review and modify those at your earliest convenience? Thank you! 😃

Comment on lines +78 to +92
Visual structure of single inheritance:

```
+-------------+
| Vehicle |
|-------------|
| start_engine|
+------+------+
|
+-------------+
| Car |
|-------------|
| drive |
+-------------+
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we have a pictorial represenatation of single inheritance here?
Example: https://www.codecademy.com/article/what-is-python-inheritance

@Prankisster
Copy link
Author

Thanks @mamtawardhani for the thoughtful review!
I've implemented the suggested changes. Let me know if there's anything else you'd like adjusted—happy to refine further if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Term Entry] Python Inheritance: Single Inheritance
3 participants