Text Size
Text Size
Exit Full Screen
Python Mini
Show
Source Code
View Source Code in Full Screen
Open in New Tab
from turtle import Turtle t=Turtle() t.setposition(-190,130) t.color("black") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-170,130) t.color("black") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-150,110) t.color("black") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-130,130) t.color("black") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-110,130) t.color("black") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-90,110) t.color("black") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-70,90) t.color("black") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-70,70) t.color("black") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-70,50) t.color("black") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-90,30) t.color("black") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-110,10) t.color("black") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-130,-10) t.color("black") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-150,-30) t.color("black") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-170,-10) t.color("black") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-190,10) t.color("black") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-210,30) t.color("black") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-230,50) t.color("black") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-230,70) t.color("black") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-230,90) t.color("black") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-210,110) t.color("black") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-190,110) t.color("red") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-170,110) t.color("red") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-150,90) t.color("red") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-130,110) t.color("red") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-110,110) t.color("red") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-90,90) t.color("red") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-90,70) t.color("red") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-90,50) t.color("rgb(179, 0, 0)") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-110,50) t.color("red") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-130,50) t.color("red") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-150,50) t.color("red") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-170,50) t.color("red") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-190,50) t.color("red") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-210,70) t.color("red") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-90,70) t.color("red") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-110,70) t.color("red") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-130,70) t.color("red") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-150,70) t.color("red") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-170,70) t.color("red") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-190,70) t.color("red") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-210,70) t.color("red") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-110,30) t.color("rgb(179, 0, 0)") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-130,10) t.color("rgb(179, 0, 0)") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-150,10) t.color("rgb(179, 0, 0)") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-150,-10) t.color("rgb(179, 0, 0)") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-170,10) t.color("rgb(179, 0, 0)") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-190,30) t.color("rgb(179, 0, 0)") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-170,30) t.color("rgb(179, 0, 0)") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-150,30) t.color("rgb(179, 0, 0)") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-130,30) t.color("rgb(179, 0, 0)") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-210,50) t.color("rgb(179, 0, 0)") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-210,90) t.color("red") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-190,90) t.color("red") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-170,90) t.color("red") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-130,90) t.color("white") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill() t.setposition(-110,90) t.color("white") t.begin_fill() for x in range(4): t.forward(20) t.right(90) t.end_fill()
pixelheart.py
( around 394 lines python code )
Published By:
bill nye
Published on
2017-07-11T15:04:22Z
Python Mini
- an
OYOclass
application,
own your own class today
.
Run
Result
×
Error message shows here