calorie calculator code example
Example: calculator
class calc:
def __init__(self,num):
self.num = num
def __add__(self,other):
#inner code
def __mul__(self, other):
#inner code
def __sub__(self, other):
#inner code
def __div__(self,other):
#inner code
# and so on for features