Class Notes

Refer to this page for class notes, Python scripts, and scheduled readings.

Week 1 Topics and Code Reading and Slides
Mon, Sep 1 Labor Day—no classes scheduled
Wed, Sep 3 Introduction and Overview Slides

Starting out with Python, Chapter 1.1–1.3

Installing Python 3
Week 2
Mon, Sep 8 Python and IDLE

first_program.py
sometime.py
Slides

Starting out with Python, Chapter 1.4–1.5

Optional:
How to Think Like a Computer Scientist, Chapter 1
Wed, Sep 10 Math, Strings, and Variables

variable_type_print.py
Slides

Starting out with Python, Chapter 2.1–2.3
Week 3
Mon, Sep 15 Math, Strings, and Variables

lucky_number.py
area_calculator.py
area_calculator_input.py
greeting.py
Slides

Starting out with Python, Chapter 2.4–2.5
Wed, Sep 17 Basic Input and Output

name_age.py
area_calculator_one_line.py
change_calculator.py
haiku.py
continuous_line.py
Slides

Starting out with Python, Chapter 2.6–2.8
Week 4
Mon, Sep 22 Basic Input and Output/Control Structures

date_formatted.py
phone_number_generator.py
name_age_formatted.py
buy_or_not.py
name_age_feedback.py
looking_for_bob.py
distance_from_campus.py
Starting out with Python, Chapter 3.1–3.2
Wed, Sep 24 Control Structures

password.py
voting_age.py
dice_game.py
avocado_decision.py
avocado_decision_organic.py
weather_conversation.py
weather_conversation_alt.py
Slides

Starting out with Python, Chapter 3.3–3.4
Week 5
Mon, Sep 29 Control Structures

passing_grade.py
passing_grade_not.py
pizza_or_sushi.py
phone_contract_renewal.py
phone_contract_renewal_feedback.py
phone_contract_renewal_efficient.py
what_us_city.py
Starting out with Python, Chapter 3.5–3.6
Wed, Oct 1 Review

day_of_the_week.py
rain_or_snow.py
playing_card.py
Slides
Week 6
Mon, Oct 6 Exam 1
Wed, Oct 8 Repetition Structures

while_loop_counter_1.py
while_loop_counter_2.py
while_loop_counter_3.py
inventory_while_loop.py
countdown.py
random_numbers.py
multiplication_table.py
numbers_to_sum.py
random_numbers_condition.py
unknown_number_of_numbers.py
shopping_trip.py
Slides

Starting out with Python, Chapter 4.1–4.3

Python development visualization
Week 7
Mon, Oct 13 Fall Recess—no classes scheduled
Wed, Oct 15 Repetition Structures

basic_for_loop_1.py
basic_for_loop_2.py
basic_for_loop_3.py
basic_for_loop_4.py
multiplication_for_loop.py
numbers_to_sum_for_loop.py
numbers_to_sum_while_loop.py
numbers_to_sum_break.py
multiplication_table_nested.py
Starting out with Python, Chapter 4.4–4.7
Week 8
Mon, Oct 20 Repetition Structures/Functions

while_loop_exercise.py
for_loop_exercise.py
hour_timer.py
day_timer.py
nested_loop_square_pattern.py
nested_loop_triangle_pattern.py
temperature_conversion_function.py
circle_area_function.py
circle_area_function_program.py
Slides

Starting out with Python, Chapter 5.1–5.3

Nature by Numbers video
Wed, Oct 22 Functions

basic_password_function.py
lucky_numbers_main_function.py
triangle_pattern_main_function.py
variable_scope.py
voting_age_functions.py
password_functions.py
default_function_parameters_add.py
default_function_parameter_greet.py
square_function_default_parameter.py
Starting out with Python, Chapter 5.4–5.6
Week 9
Mon, Oct 27 Functions

sales_tax_total.py
sales_tax_total_2.py
basho.py
autumn_haiku.py
areas.py
greater_area.py
name_return_values.py
Starting out with Python, Chapter 5.7–5.10

Python’s random module

Robot Readable World video
Wed, Oct 29 Strings

character_iteration.py
character_replacement.py
random_letter.py
random_password.py
name_mashup.py
character_codes.py
Slides

Starting out with Python, Chapter 8.1
Week 10
Mon, Nov 3 Strings

find_text.py
sentence_type_test.py
sentence_type_test_alt.py
Starting out with Python, Chapter 8.2–8.3
Wed, Nov 5 Strings/Review

vowels_in_string_1.py
vowels_in_string_2.py
vowels_in_string_3.py
bottles_of_beer.py
string_iteration_example.py
for_loop_example.py
while_loop_example.py
nested_loop_example.py
exchange_rate_example.py
Slides
Week 11
Mon, Nov 10 Exam 2
Wed, Nov 12 Programming Graphics

draw_square.py
draw_circle.py
draw_arc.py
draw_circle_with_input.py
draw_circle_functions.py
draw_square_rgb.py
draw_squares_pick_up_pen.py
draw_instances.py
draw_square_loop.py
Slides

How to Think Like a Computer Scientist, Chapter 3

Color names recognized by the turtle module
Week 12
Mon, Nov 17 Programming Graphics

draw_triangle.py
draw_triangles_circles.py
draw_square_loops_color.py
How to Think Like a Computer Scientist, Chapter 4

Turtle Graphics Documentation
Wed, Nov 19 Data Structures

lists.txt (Python shell session)
list_number_filter.py
grocery_list.py
grocery_list_sorted.py
Slides

Starting out with Python, Chapter 7
Week 13
Mon, Nov 24 Data Structures

dictionaries.txt (Python shell session)
ages.py
numbers_squared.py
numbers_squared_list_comp.py
unicodes_list_comp.py
ages_list_comp.py
city_temperatures.py
random_unique_number_list.py
random_unique_number_list_of_10.py
Starting out with Python, Chapter 9
Wed, Nov 26 Data Structures/File Input and Output

translation.py
card_game.py
letter_frequency.py
letter_frequency_greatest.py
print_file.py
alter_text.py
frost.txt
wcw.txt
Week 14
Mon, Dec 1 File Input and Output

print_file.py
word_count.py
barbara_in_wonderland.py
random_line.py
randomize_lines.py
sort_lines.py
write_file.py
write_file_with_check.py
append_to_file.py
Slides

Starting out with Python, Chapter 6.1–6.2

frost.txt
melville.txt
carroll.txt
names.txt
sonnets.txt
poe.txt

Project Gutenberg
Wed, Dec 3 File Input and Output

read_csv.py
read_csv_column_average.py
write_csv.py
process_csv.py
nyc_weather.py
Starting out with Python, Chapter 6.3

data.csv
Week 15
Mon, Dec 8 Exception Handling

total_with_tax_exception.py
total_with_tax_exeception_else.py
total_with_tax_exception_loops.py
total_with_tax_exception_recursion.py
process_csv_exception.py
web_search.py
Slides

Starting out with Python, Chapter 6.4

data-float.csv

PBS Off Book: Can Hackers Be Heroes?
Wed, Dec 10 Review

ocean_levels.py
falling_distance.py
random_number_game.py
read_file_exceptions.py
running_distance.py