human
I am working on the file ".ipynb_checkpoints/Lecture4-checkpoint.ipynb".
The first task is:
Let's rewrite this:
Can you write Python code for it?
 Give me a the Python code you requested?
assistant
#Here is the Python code you requested.

class foo():
    def __init__(i, num):
        i.num = num
    def __add__(i, new):
        i.num += new
        return i
    def __sub__(i, new):
        i.num -= new
        return i

FOO = foo(5)
FOO += 1
print FOO.num
FOO -= 4
print FOO.num