[code=python]
class Calulation:
def __init__(self, a, b, c)
self._a =a
self._b =b
self._c =c
def __ result
x=self._a*self. _b - self._b+ self._c
[/code]
If I don't want x <0 what would I do, for example if x=-1, then x automatically = 0
class Calulation:
def __init__(self, a, b, c)
self._a =a
self._b =b
self._c =c
def __ result
x=self._a*self. _b - self._b+ self._c
[/code]
If I don't want x <0 what would I do, for example if x=-1, then x automatically = 0
Comment