Gpio not work

Please edit your first post and format you code as per point 11 here: How to help us help you - or How to ask a good question