function(s):
print("hello world")
- HW01_ch01_ex02_03.py
- HW01_ch02_ex00_01.py
- HW01_ch02_ex00_02.py
- HW01_ch02_ex02.py
- HW02_ch03_ex01.py
- HW02_ch03_ex02.py
- HW02_ch03_ex03.py
- HW02_ch05_ex00.py
- HW02_ch05_ex02.py
- HW02_ch05_ex03.py
- HW03_ex06.py
- HW03_string1.py
- HW04_ch07_ex02.py
- HW04_ch08_ex00.py
- HW04_ch08_ex04.py
- HW04_ch08_ex05.py
- HW05_ex00_logics.py
- HW05_ex09_01.py
- D06ex01.py
- D06ex02.py
- D06ex03.py
- D06ex04.py
- HW06_ch09_ex02.py
- HW06_ch09_ex03.py
- HW06_ch09_ex04.py
- HW06_ch09_ex05.py
- HW06_ch09_ex06.py
- HW06_ch10_ex01.py
function(s):
capitalize_nested()
uses: recursion
function(s):
cumulative_sum()
uses: enumerate
function(s):
is_sorted()
function(s):
match_ends()
front_x()
sort_last()
uses: key=operator.itemgetter(1)
function(s):
store_to_dict_readlines()
store_to_dict_readsplit()
store_to_dict_readsplitlines()
store_to_dict_for()
uses: dict comprehension
function(s):
histogram_new()
histogram_old()
get_pledge_list_ascii()
get_pledge_list_resplit()
get_pledge_list_resub()
get_pledge_list_refindall()
uses: .get()
, from string import ascii_letters
, re.split()
, re.sub()
, re.findall()
function(s):
print_hist_old()
print_hist_new()
uses: from string import ascii_letters
, example of importing your own scripts as a module
function(s):
reverse_lookup_old()
reverse_lookup_new_listcomprehension()
reverse_lookup_new_forloop()
uses: list comprehension, raise
, key=str.lower
function(s):
invert_dict_old()
invert_dict_new_setdefault_style()
invert_dict_new_defaultdict_style()
print_hist_newest_setdefault_style()
print_hist_newest_defaultdict_style()
uses: .defaultdict
, .setdefault
- fizzbuzz.py
uses: print(msg or n)
- HW09_ch12_ex00.py
function(s):
sumall()
uses: variable-length arguments w/ *args
- HW09_ch12_ex01.py
functions(s):
most_frequent()
uses: key=operator.itemgetter(1)
, .get()
- HW09_ch12_ex02.py
- HW09_ex12_ex03.py
- HW09_ex12_ex04.py
- HW09_wordcount.py
- roster.txt
- solution.md
- words.txt
- pledge.txt