A couple of (old) homeworks made in python