Reverse Array Using Python To Calculate