Difference between revisions of "Nxt-python-hints"

From Earlham CS Department
Jump to navigation Jump to search
(New page: Back to [https://wiki.cs.earlham.edu/index.php/Robotics-2010 Robotics Main Page] ---- == Python Programming Hints == *Wrap your code in a try/finally block so that you can stop the motors ...)
 
 
(One intermediate revision by one other user not shown)
(No difference)

Latest revision as of 08:16, 27 April 2010

Back to Robotics Main Page


Python Programming Hints

  • Wrap your code in a try/finally block so that you can stop the motors on control-c.
try:
  [your code here]
finally:
  [stop all your motors]