import turtle as tt |
tt.speed( 10 ) |
tt.right( 90 ) |
for i in range ( 8 ): |
if i % 2 = = 0 : |
tt.color( 'yellow' ) |
else : |
tt.color( 'red' ) |
tt.begin_fill() |
tt.forward( 250 ) |
tt.left( 90 ) |
tt.circle( 250 , 45 ) |
tt.left( 90 ) |
tt.forward( 250 ) |
tt.end_fill() |
tt.left( 180 ) |
tt.color( 'black' ) |
tt.begin_fill() |
tt.left( 165 ) |
tt.forward( 75 ) |
tt.left( 30 ) |
tt.forward( 75 ) |
tt.left( 150 ) |
tt.forward( 75 ) |
tt.left( 30 ) |
tt.forward( 75 ) |
tt.end_fill() |
|