If Statements
if direction == 'f':
t.forward(step)
elif direction == 'l':
t.left(90)
t.forward(step)
elif direction == 'r':
t.right(90)
t.forward(step)
elif direction == 'b':
t.right(180)
t.forward(step)
if x > 3 or y < 2 or z > -1:
DO SOMETHINGif x > 3 and y < 2 and z > -1:
DO SOMETHING
Last updated
Was this helpful?