mirror of
https://github.com/codecov/codecov-action
synced 2026-09-07 20:03:43 +00:00
19 lines
299 B
Python
19 lines
299 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
|
|
|
|
def smile():
|
|
return ':))'
|