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. Note we webpage that explains this in detail.
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
End of demo.