diff --git a/Input.py b/Input.py index ae7c255..1f1c49c 100644 --- a/Input.py +++ b/Input.py @@ -5,7 +5,10 @@ class Input(object): self.weight = p_weight def print(self): - print("value: %f\nweight: %f") % (self.value, self.weight) + print("value: %f\tweight: %f" % (self.value, self.weight)) - def setweight(self, p_weight): - self.weight = p_weight \ No newline at end of file + def set_weight(self, p_weight): + self.weight = p_weight + + def output(self): + return self.value * self.weight