Skip to content

Commit 37de2f3

Browse files
authored
Update methodcaller.py
1 parent 3b3b7e4 commit 37de2f3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

working-with-the-python-operator-module/methodcaller.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import operator
12
from dataclasses import dataclass
23

34

@@ -29,8 +30,6 @@ def get_full_name(self, last_name_first=False):
2930
for musician in musicians_list:
3031
group_members.append(Musician(*musician))
3132

32-
import operator
33-
3433
# Print first name, then last name.
3534
first_last = operator.methodcaller("get_full_name")
3635

0 commit comments

Comments
 (0)