Inflation hits 7% in October on high energy prices