How To Print Pattern Using For Loop In Python With Index