array reversal problem in python

visit shbcf.ru