Python knowledge based on examples