How to call the Ax states in a loop?

Ax are set on another part of the program, I am currently trying to understand how to print properly these value. As I am currently failing there is no point in removing the first three lines. I need to be sure of my inputs.