mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-08 08:06:27 +00:00
16 lines
260 B
Python
16 lines
260 B
Python
class Calculator:
|
|
|
|
def add(x, y):
|
|
return x + y
|
|
|
|
def subtract(x, y):
|
|
return x - y
|
|
|
|
def multiply(x, y):
|
|
return x * y
|
|
|
|
def divide(x, y):
|
|
if y == 0:
|
|
return 'Cannot divide by 0'
|
|
return x * 1.0 / y
|