mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix: correct ambiguous phrasing and bold formatting in python lectures (#67542)
This commit is contained in:
+1
-1
@@ -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.
|
||||
|
||||
|
||||
+1
-1
@@ -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--
|
||||
|
||||
|
||||
Reference in New Issue
Block a user