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

Method __init__

other/greedy.py:2–5  ·  view source on GitHub ↗
(self, name, value, weight)

Source from the content-addressed store, hash-verified

1class Things:
2 def __init__(self, name, value, weight):
3 self.name = name
4 self.value = value
5 self.weight = weight
6
7 def __repr__(self):
8 return f"{self.__class__.__name__}({self.name}, {self.value}, {self.weight})"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected