Skip to content

Commit 067110d

Browse files
authored
fix(curriculum): update "The setattr() method" to "The setattr() function" in lecture-cl… (freeCodeCamp#63542)
1 parent a190ef3 commit 067110d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

curriculum/challenges/english/blocks/lecture-classes-and-objects/6908d38f7cccc31602743340.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ for attr in dir(person):
9797
# name: John Doe
9898
```
9999

100-
The `setattr()` method lets you create a new attribute or update an existing one dynamically. The syntax looks like this:
100+
The `setattr()` function lets you create a new attribute or update an existing one dynamically. The syntax looks like this:
101101

102102
```python
103103
setattr(object, attribute_name, value)

0 commit comments

Comments
 (0)