mirror of
https://github.com/codecov/codecov-action
synced 2026-05-18 05:03:25 +03:00
18fdacf0ce
* fix: update to use local app/ dir * fix: update if statement on macos xlarge
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
|