Python Heart Shape Pattern Code In Java