Skip to content

Instantly share code, notes, and snippets.

@tedysaputro
Created December 8, 2018 17:43
Show Gist options
  • Select an option

  • Save tedysaputro/7b33abbc3c276b73e7abc9e89fd4105f to your computer and use it in GitHub Desktop.

Select an option

Save tedysaputro/7b33abbc3c276b73e7abc9e89fd4105f to your computer and use it in GitHub Desktop.
robot_x = 0.1
robot_y = 0.1
while(robot_x<2 and robot_y<2):
robot_x +=0.1
robot_y +=0.1
print "Current position ",robot_x, robot_y
print "Reached destination"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment