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

In the test.py 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

@skywriter.move()
    def move(x, y, z):
    print( x, y, z )

It is even simpler because Python lists are mutable: -

emptyList.append(x)
1 Like