Mason’s Nerdy Icon  •  Stage 1: Original Code  •  09/08/2026
TNT Styl’n — Python Turtle Graphics Showcase

Mason’s Nerdy Icon

154 lines of Python Turtle Graphics, written without AI — three hours of pure craft.
Stage 1: the original. Stage 2: the upgrade. Both belong here.

🐍  Stage 1 — Original Code

The Code as Written

This is a CodeHS Python Turtle Graphics assignment completed without AI assistance or any outside help. The code draws a nerdy emoji face from scratch using only forward(), backward(), left(), right(), circle(), and begin_fill()/end_fill(). Every angle, every radius, every color value was chosen by hand.

“i did this all by myself without an ai or outward assistents — it took me like three hours” — Mason, first two lines of his source code
  1. # i did this all by myself without an ai or outward assistents
  2. # it took me like three hours
  3. speed(8)
  4. bgcolor("#010256")
  5. penup()
  6. backward(50)
  7. pensize(10)
  8. color("#f4e650")
  9. circle(75, 90)
  10. pendown()
  11. circle(75, 180)
  12. color("#f3d14a")
  13. circle(75, 180)
  14. circle(75, -90)
  15. left(90)
  16. forward(10)
  17. right(90)
  18. #circle2
  19.  
  20. pendown()
  21. begin_fill()
  22. circle(65)
  23. end_fill()
  24. #cricle2 end
  25. penup()
  26. right(90)
  27. forward(10)
  28. left(90)
  29. circle(75, 105)
  30. color("black")
  31. pendown()
  32. pensize(5)
  33. left(55)
  34. forward(60)
  35. backward(60)
  36. left(20)
  37. pensize(10)
  38. forward(145)
  39. right(160)
  40. pensize(5)
  41. forward(60)
  42. backward(60)
  43. right(90)
  44. forward(45)
  45. left(70)
  46. forward(42.5)
  47. left(70)
  48. forward(45)
  49. right(140)
  50. forward(45)
  51. left(70)
  52. forward(42.5)
  53. left(70)
  54. forward(45)
  55. left(110)
  56. forward(40)
  57. penup()
  58. left(90)
  59. forward(27.5)
  60. left(90)
  61. color("black")
  62. begin_fill()
  63. circle(12.5)
  64. end_fill()
  65. penup()
  66. backward(72.5)
  67. begin_fill()
  68. circle(12.5)
  69. end_fill()
  70. penup()
  71. backward(5)
  72. left(90)
  73. forward(11)
  74. right(90)
  75. color("white")
  76. pendown()
  77. begin_fill()
  78. circle(3.5)
  79. end_fill()
  80. penup()
  81. forward(72.5)
  82. pendown()
  83. begin_fill()
  84. circle(3.5)
  85. end_fill()
  86. penup()
  87. color("black")
  88. right(90)
  89. forward(11)
  90. left(90)
  91. forward(5)
  92. left(90)
  93. forward(27.5)
  94. right(90)
  95. forward(40)
  96. left(105)
  97. circle(75, -105)
  98. left(90)
  99. forward(40)
  100. right(90)
  101. pensize(1)
  102. forward(20)
  103. pendown()
  104. backward(40)
  105. right(90)
  106. begin_fill()
  107. circle(20, 180)
  108. end_fill()
  109. left(90)
  110. forward(20)
  111. penup()
  112. forward(10)
  113. left(90)
  114. color("white")
  115. pendown()
  116. begin_fill()
  117. forward(8)
  118. circle(10, 180)
  119. forward(8)
  120. left(90)
  121. forward(20)
  122. end_fill()
  123. penup()
  124. forward(25)
  125. color("#ed3e4a")
  126. pendown()
  127. begin_fill()
  128. circle(5)
  129. end_fill()
  130. penup()
  131. backward(80)
  132. pendown()
  133. begin_fill()
  134. circle(2.5)
  135. end_fill()
  136. left(90)
  137. penup()
  138. forward(10)
  139. right(90)
  140. forward(15)
  141. begin_fill()
  142. circle(3.7)
  143. end_fill()
  144. penup()
  145. forward(40)
  146. left(90)
  147. forward(20)
  148. left(90)
  149. pendown()
  150. begin_fill()
  151. circle(2)
  152. end_fill()
  153. penup()
  154. forward(400)

Output

Mason's Turtle Graphics output: a nerdy emoji face with black thick-rimmed glasses, yellow skin, rosy cheeks, and a small white smile on a dark navy background

The nerdy emoji, rendered by Python’s turtle module.
Every curve, angle, and color was hand-coded — no SVG, no library.

By Mason •  CodeHS Python Assignment •  154 lines •  ~3 hours Preserved exactly as written, including the original typos

Stage 2: The Upgrade Is Here

The Stage 2 refactor reorganizes Mason’s 154 lines into named constants, seven functions, and inline comments — producing identical artwork with code that can be read, changed, and extended without re-reading the whole file. Open both pages side by side to compare.

Stage 2 — Refactored Code Open in New Tab