exercises about while/def/if