Update greedy.py (#1832)

This commit is contained in:
Prince Gangurde 2020-04-07 04:30:10 +05:30 committed by GitHub
parent 6043a44ffb
commit f35484baf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,8 @@
class things: class things:
def __init__(self, n, v, w): def __init__(self, name, value, weight):
self.name = n self.name = name
self.value = v self.value = value
self.weight = w self.weight = weight
def __repr__(self): def __repr__(self):
return f"{self.__class__.__name__}({self.name}, {self.value}, {self.weight})" return f"{self.__class__.__name__}({self.name}, {self.value}, {self.weight})"