パイソンに挑戦するぞ!! その1
問題文
(forward(100))
forward(100)
(forward())
forward()
(backward())
backward()
(backward(200))
backward(200)
(left(90))
left(90)
(left(-180))
left(-180)
(right(90))
right(90)
(right(-180))
right(-180)
(pencolor('red'))
pencolor('red')
(pencolor('blue'))
pencolor('blue')
(speed(3))
speed(3)
(from turtle import*)
from turtle import*
(# robo done)
# robo done
(write_str('robo done'))
write_str('robo done')
(mp = MotorPair('A','B'))
mp = MotorPair('A','B')
(mp = MotorPair('E','F'))
mp = MotorPair('E','F')
(mp.move(3,'rotations',0,50))
mp.move(3,'rotations',0,50)
('rotations')
'rotations'
('seconds')
'seconds'
(mp.move(10,'cm',0,50))
mp.move(10,'cm',0,50)
(mp.move(4,'seconds',0,50))
mp.move(4,'seconds',0,50)
(mp.move_tank(3,'rotations',-50,50))
mp.move_tank(3,'rotations',-50,50)
(hub = PrimeHub())
hub = PrimeHub()
(hub.light_matrix.write('Hello!'))
hub.light_matrix.write('Hello!')