Instant Hacking
Learn how to program with Python

Example Abstraction

    def floor(number):
        result = 0
        while result < number:
            result = result+1
        result = result-1
        return result

Now that we have defined it, we can use it like this:

    x = 2.7
    y = floor(2.7)