# 服務學習教學內容規劃-a部分 ### 布林值 布林函數bool() :5分鐘 ### > < >= <= ==(比較運算子):10分鐘 ### and/or/not 真值表 ()優先度 if函數20分鐘 ### 例題練習 10分鐘 例題連結: ##### 1 https://zerojudge.tw/ShowProblem?problemid=d064 (簡單題)順便讓他們學習一下用online judge 範例解答: ```python x = int(input()) if x%2 == 1: print('Odd') if x%2 == 0: print('Even') ``` ##### 2 https://zerojudge.tw/ShowProblem?problemid=a003 範例解答: ```python m, d = input().split() m = int(m) d = int(d) s = (m * 2 + d) % 3 if s == 0: print('普通') if s == 1: print('吉') if s == 2: print('大吉') ``` ###### 如果前面沒教split()就讓我們講一下 #### 合計45分鐘 #### 單元最後都會讓學生們先實際操作看看函數運作