Coder Social home page Coder Social logo

solutions's Introduction

solutions

D01

function(s): print("hello world")

  • HW01_ch01_ex02_03.py
  • HW01_ch02_ex00_01.py
  • HW01_ch02_ex00_02.py
  • HW01_ch02_ex02.py

D02

  • 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

D06

  • 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

D07

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)

D08

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

D08

  • 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

Resources

  • roster.txt
  • solution.md
  • words.txt
  • pledge.txt

solutions's People

Contributors

danielsgriffin avatar

Watchers

Shannon Hamilton avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.