Loading [MathJax]/extensions/mml2jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Engineering LibreTexts

Search

  • Filter Results
  • Location
  • Classification
    • Article type
    • Author
    • Set as Cover Page of Book
    • License
    • Show TOC
    • Transcluded
    • OER program or Publisher
    • Autonumber Section Headings
    • License Version
    • Print CSS
  • Include attachments
Searching in
About 1 results
  • https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_Languages/Python_Programming_(OpenStax)/11%3A_Classes/11.04%3A_Overloading_Operators
    This page explains magic methods (dunder methods) in Python that help users interact with custom classes, focusing on operator overloading for arithmetic and comparison actions. It highlights how to d...This page explains magic methods (dunder methods) in Python that help users interact with custom classes, focusing on operator overloading for arithmetic and comparison actions. It highlights how to define these methods to customize class behavior, with examples using an Account class. Additionally, it features exercises for practical application, such as merging exercise logs and enhancing the Account class functionalities.

Support Center

How can we help?