my add

Created by Julien Palard

Write a program that print the result of simple addition.


You should work on this exercise with your own installation of Python, on your computer. Learn how for Mac OSX or Windows.

If no parameters are given, you must print the following error message:

usage: python3 OP1 OP2


julien@localhost$ python3 1 2
julien@localhost$ python3 2 3
julien@localhost$ python3
usage: python3 OP1 OP2


To get the parameters given from the command line, you'll need sys.argv.

There's no corrections yet, hit the `Submit` button to send your code to the correction bot.

Keyboard shortcuts:

  • Ctrl-Enter: Send your code to the correction bot.
  • Escape: Get back to the instructions tab.

See solutions