Skip to content

Commit 642aa4d

Browse files
committed
Apply small fixes
Removed mentions of venv from the README file because you're only using stdlib modules Renamed two files for more descriptiveness Added a missing print() call in one file Added the .pkl files so deserialization runs don't initially fail Sorted two imports using isort
1 parent bd2076f commit 642aa4d

6 files changed

Lines changed: 3 additions & 3 deletions

File tree

45 Bytes
Binary file not shown.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212

1313
get_lname = operator.itemgetter("lname")
1414

15-
min(musicians, key=get_lname)
15+
print(min(musicians, key=get_lname))
32 Bytes
Binary file not shown.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import pickle
21
import operator
2+
import pickle
33

44
print(operator.mod(7, 4))
55

working-with-the-python-operator-module/perform_operation2.py renamed to working-with-the-python-operator-module/perform_operation_function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from operator import add, sub, mul, truediv
1+
from operator import add, mul, sub, truediv
22

33

44
def perform_operation(operator_function, operand1, operand2):

working-with-the-python-operator-module/perform_operation_1.py renamed to working-with-the-python-operator-module/perform_operation_string.py

File renamed without changes.

0 commit comments

Comments
 (0)