Large black squares with small red squares using Turtle.
# 2021-12-12 ews from math import * from turtle import * # square def square(n): pendown() for i in range(4): forward(n) left(90) penup() # drawing penup() forward(30) left(90) forward(30) left(90) square(60) color(255,0,0) forward(15) right(90) forward(30) left(90) square(30) left(90) forward(30) right(90) forward(45) left(90) forward(15) right(90) square(30) left(90) forward(45) left(90) forward(45) left(180) square(30) left(180) forward(15) left(90) forward(45) right(90) forward(30) right(180) square(30) goto(0,0)