Skip to content

Commit

Permalink
example added
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenslemmer committed Nov 2, 2022
1 parent 478c15c commit ee33a31
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions example10.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from RobotArm import RobotArm
robotArm = RobotArm('exercise 10')
i = 9
while i >= 0:
robotArm.grab()
for x in range(0, i):
robotArm.moveRight()
i -= 1
robotArm.drop()
for x in range(0, i):
robotArm.moveLeft()
i -= 1

0 comments on commit ee33a31

Please sign in to comment.