ex35.py - branches and functions