We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c1b75c commit 64256ffCopy full SHA for 64256ff
other/greedy.py
@@ -1,8 +1,8 @@
1
class things:
2
- def __init__(self, n, v, w):
3
- self.name = n
4
- self.value = v
5
- self.weight = w
+ def __init__(self, name, value, weight):
+ self.name = name
+ self.value = value
+ self.weight = weight
6
7
def __repr__(self):
8
return f"{self.__class__.__name__}({self.name}, {self.value}, {self.weight})"
0 commit comments