Hello,
I've some troubles trying to solve these problems. Can anybody help?
It is obviously homework. I move it to the homework forum. To get some help, you need to post your attempts to implement this in Python and explain the issues that you encountered.