Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. #!/usr/bin/python3
  2.  
  3. from pyrob.api import *
  4.  
  5.  
  6. @task
  7. def task_2_1():
  8.     def fill():
  9.         a = 0
  10.         while a != 3:
  11.             move_right()
  12.             fill_cell()
  13.             a += 1
  14.  
  15.     move_down(2)
  16.     fill()
  17.     move_left()
  18.     move_down()
  19.     fill_cell()
  20.     move_up(2)
  21.     fill_cell()
  22.     move_left()
  23.     pass
  24.  
  25.  
  26. if __name__ == '__main__':
  27.     run_tasks()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement