1 Same Number Pattern Program Python