From f35484baf69dd306afb19f56c51a367129d52758 Mon Sep 17 00:00:00 2001 From: Prince Gangurde <50592495+Prince326@users.noreply.github.com> Date: Tue, 7 Apr 2020 04:30:10 +0530 Subject: [PATCH] Update greedy.py (#1832) --- other/greedy.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/other/greedy.py b/other/greedy.py index d1bc15630..4b78bf1c0 100644 --- a/other/greedy.py +++ b/other/greedy.py @@ -1,8 +1,8 @@ class things: - def __init__(self, n, v, w): - self.name = n - self.value = v - self.weight = w + def __init__(self, name, value, weight): + self.name = name + self.value = value + self.weight = weight def __repr__(self): return f"{self.__class__.__name__}({self.name}, {self.value}, {self.weight})"