translate novice python 04-cond.ipynb in progress