Sep-06-2019, 05:57 PM
You need to look a little bit more into python oop
class SumTheIntegers: def __init__(self, x, y): self.x = x self.y = y def _sum(self): return self.x + self.y def main(): sum_integers = SumTheIntegers(10, 13) print("The value of x is", sum_integers.x) print("The value of y is", sum_integers.y) print() print("The sum is", sum_integers._sum()) main()