Код:
from turtle import *
pensize(10)
c = 'red'
for _ in range(10):
if c == 'red':
c = 'green'
else:
c = 'red'
color(c)
forward(30)
Код:
from turtle import *
pensize(10)
c = 'red'
for _ in range(10):
if c == 'red':
c = 'green'
else:
c = 'red'
color(c)
forward(30)