Hello World!

In this course, you are going to program a mobile robot, using a language called Python. If you have never used it, but you are familiar with another language (C, Java), you will learn the basics very quickly.

The programs will run directly in the browser, in an environment called Jupyter Notebook. How? Quite simple: the notebook consists of cells, which can be either text or code. The latter can be executed with Shift+Enter. Try it in the following cell:


In [ ]:
# this is a code cell
# click on it, then press Shift+Enter
print('Hello World!')

If the "Hello World!" message has been displayed as the output of the cell, congratulations! everything is working fine :-)

For the programs in this course, you need to know the basics of structured programming:

  • Variables
  • Data structures (arrays, lists)
  • Control flow (conditional statements, loops)
  • Functions

For a quick introduction to these topics in Python, you may browse through The Python Tutorial.

Let's proceed now to the next notebook: Moving the Robot


Try-a-Bot: an open source guide for robot programming

Developed by:

Sponsored by:

[![IEEE Robotics and Automation Society](img/logo/ras.png "IEEE Robotics and Automation Society")](http://www.ieee-ras.org) [![Cyberbotics](img/logo/cyberbotics.png "Cyberbotics")](http://www.cyberbotics.com) [![The Construct](img/logo/theconstruct.png "The Construct")](http://www.theconstructsim.com)

Follow us:

[![Facebook](img/logo/facebook.png "Facebook")](https://www.facebook.com/RobotProgrammingNetwork) [![YouTube](img/logo/youtube.png "YouTube")](https://www.youtube.com/user/robotprogrammingnet)