Python Code For Heart Pattern