Range Function In For Loop In Python