Pattern Using Python Code