Skywiter HAT - how do I append x values in to a list?

In the file found in the examples of Skywriter HAT , how would one append the values of x,y, and z to a list? I want to be able to detect left-right motion. It is not as easy as emptyList = emptyList.append(x).

This is the code I am referring to

    def move(x, y, z):
    print( x, y, z )

It is even simpler because Python lists are mutable: -

1 Like