Number Pattern Code For Python Games