From ee33a31309fdd46d8cc3bd09a25294c9709af9ac Mon Sep 17 00:00:00 2001 From: Jeroen Slemmer Date: Wed, 2 Nov 2022 09:50:36 +0100 Subject: [PATCH] example added --- example10.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 example10.py diff --git a/example10.py b/example10.py new file mode 100644 index 0000000..567370c --- /dev/null +++ b/example10.py @@ -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 \ No newline at end of file