MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / __repr__

Method __repr__

other/greedy.py:7–8  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5 self.weight = weight
6
7 def __repr__(self):
8 return f"{self.__class__.__name__}({self.name}, {self.value}, {self.weight})"
9
10 def get_value(self):
11 return self.value

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected