Try out these exercises at home. These are just examples. Try to find some more examples in the internet or just play around!
1+1
2
*
and /
are doing? What about %
and **
?
If you don't remember try figuring it out from the Python console. Try, e.g. 1%4
, 2%4
, 3%4
, 4%4
, 5%4
... or 2**1
, 2**2
, 2**3
, 2**4
, 2**5
... Can you explain the patterns?'A' + 'B'
would produce 'AB'
. What's wrong with the result of the following?'Hello' + 'World!'
'Ha' * 10
You can find our tutorial on how to use the Google Colab and how to use it to submit the homeworks here: Google Colab Tutorial.