demo¶
Demo Computing Laboratory. One task only to get to know the system. You are welcome to use this as a playground to better understand how to submit assignments, and understand the feedback you get from the system.
Create a file demo.py
in which you provide the implementation for the add
task.
add(a, b)
¶
Write a function add(a, b)
that takes two numbers a
and b
and returns
their sum.
In [ ]: add(1, 2)
Out[ ]: 3
In [ ]: add(-10, 2)
Out[ ]: -8
In [ ]: add(0, 42)
Out[ ]: 42
In [ ]: add(0.5, 0.5)
Out[ ]: 1.0
Once you have completed the task (or before if you like to see some failed tests because the task is
no completed correctly), attach your file demo.py
to an email from your registered email account and send it to
learn@mpsd.mpg.de
.
You should receive feedback by email within a few minutes.
Note: this webpage explains the process in detail.
End of demo.