Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Calculator():
- def adding(self, a, b):
- wynik = a + b
- print(wynik)
- def substraction(self, a, b):
- wynik = a - b
- print(wynik)
- def multiplication(self, a, b):
- wynik = a * b
- print(wynik)
- def division(self, a, b):
- wynik = a / b
- print(wynik)
- calc = Calculator()
- calc.adding(10, 5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement