Number Pattern Questions In Python