Goals: what you will make by the end of the day

Untitled

北約音標字母(英語:NATO phonetic alphabet),正式稱為國際無線電通話拼寫字母(英語:International radiotelephony spelling alphabet),是最常使用的拼寫字母。雖常稱作「語音字母」(phonetic alphabets)、字母解釋法或是通訊代碼,但其字母拼法與語音系統(比如國際音標)並沒有關連。因羅馬字母之發音在各國唸法常有差異(如字母Y在德文發音唸為ypsilon),北約音標字母中的A到Z(共26個拉丁字母)和0到9(共10個印度阿拉伯數字)使用截頭表音(如Alfa代表 A、Bravo代表 B,等等)。由此,無論透過無線電或電話收發語音訊息雙方之母語是否相同,眾多字母與數字組成的關鍵配搭也可較為準確地朗讀及知悉,並確保傳送之語音有一定的可理解性,這在保證航行或涉及人員安全的時候尤為重要。

How to Create Lists using List Comprehension

Untitled

new_list = [new_item for item in flist] —> only one line to express

names = ['Alex','Beth','Caroline','Dave','Eleanor','Freddle']
short_names = [name for name in names if len(name) < 5]
short_names

#['Alex', 'Beth', 'Dave']
names = ['Alex','Beth','Caroline','Dave','Eleanor','Freddle']
long_names = [name.upper() for name in names if len(name) > 5]
long_names

#['CAROLINE', 'ELEANOR', 'FREDDLE']

(Interactive Coding Exercise) Squaring Numbers

numbers = [1,1,2,3,5,8,13,21,34,55]
squared_number = [number **2 for number in numbers]
print(squared_number)

(Interactive Coding Exercise) Filtering Even Numbers