fix: correct ambiguous phrasing and bold formatting in python lectures (#67542)

This commit is contained in:
Divya Dawda
2026-05-22 22:55:15 +05:30
committed by GitHub
parent 41f29e6e3c
commit e3d9399d03
2 changed files with 2 additions and 2 deletions
@@ -17,7 +17,7 @@ Think of special methods as the directors of the activities between a person pro
Remember, you don't need to call special methods directly. Instead, Python automatically calls them when certain actions happen. These operations include:
- **Arithmetic operations like addition, subtraction, multiplication, division, and others**. In addition, `__add__()` is called, `__sub__()` for subtraction, `__mul__()` for multiplication, and `__truediv__()` for division.
- **Arithmetic operations like addition, subtraction, multiplication, division, and others**. For addition, `__add__()` is called, `__sub__()` for subtraction, `__mul__()` for multiplication, and `__truediv__()` for division.
- **String operations like concatenation, repetition, formatting, and conversion to text**. `__add__()` is called for concatenation, `__mul__()` for repetition, `__format__()` for formatting, `__str__()` and `__repr__()` for text conversion, and so on.
@@ -211,7 +211,7 @@ And that's how you can handle attributes dynamically!
## --text--
**What does the** `getattr()` **function in Python allow you to do?**
What does the `getattr()` function in Python allow you to do?
## --answers--