When posting code, please use the highlight tags to retain the correct formatting: .. your code here ..

You probably also need to include your output examples inside the highlight tags, because...