Quick link to Live Python Tutor
Week 1 ¶
Wednesday ¶
- Overview slides
- Welcome
- Why computing (and can’t AI do it all?)
- Support available
- Brief example: logistic map
- POGIL 1.1 together
Thursday ¶
- Lab 1
- 1.A: “Hello, world” (
print, ZyLabs workflow) - 1.B: Squares (
input, variables) - 1.C: Star (
turtle)
- 1.A: “Hello, world” (
Checklist before you leave:
- Each partner has submitted a full version of each section.
- You’ve celebrated writing your (first?) interesting programs!
You might want to start on the homework too! Hints:
- Start with something you know works… like your star.
- pen.penup()
- You don’t have to use forward() and right(); you can also use pen.goto()
Also finish Reading 1 and work on Forum 1 and Quiz 1 if you haven’t yet.
Friday ¶
- Lab review
- POGIL 1.2
- POGIL 1.3
Upcoming:
- Quiz 1 (survey)
- Homework 1
- Forum 1
- Reading 2 (Monday)
Week 2 ¶
Monday ¶
- Logistics reminders:
- Reading 2 due tonight
- Homework 1 due tomorrow (instructions and submit on ZyBooks)
- Forum 1 due tomorrow (introduce yourselves, initial response to a video)
- Week 1 Reflections due tonight
- Quiz 1 (survey) should be done
- Reminder of support available
- Study Sessions M/R 7-9pm SB337
- In-Class Code folder on Moodle
- CodeHelp
- Intro to retrieval practice (presentation on Moodle)
- Retrieval Quiz 2.1 (on Moodle)
- POGIL 2.1 and 2.3 (skip 2.2) in teams
Wednesday ¶
- AI policy and motivation
- Logistics reminders
- Readings 1 and 2 should be done by now. (Did you do Participation exercises?)
- Quiz 1 and Forum 1 should be done by now (let me know if you’ve missed)
- Office Hours times
- Retrieval Quiz 2.2 (on Moodle)
- POGIL 2.2 in teams (15 min); if finished, review POGIL 2.1 and 2.3
- Reviewing POGIL 2.1 and 2.3 (10 min)
- Slides 2 (20 min)
Thursday ¶
Lab 2:
- 2.A: Expressions Practice
- 2.B: Number Puzzle
- 2.C: Regular n-gon
- 2.D (optional): scalable stick figure
Friday ¶
- Logistics reminders
- Reading 3: Monday
- Week 2 Reflections: Monday
- Homework 2: Tuesday
- Forum 2: initial posts due Tuesday
- Quiz 2 next Friday
- Retrieval Quiz 2.3
- Lab review
- Code style for number puzzle
- ngons: how did that code work?
turtle.circlevspen.circle
- Break: SIGCHI
- Slides 2
- identity, value and type
int()andfloat()- binary representations
- Python.org article on floating point
- this is part of the useful Python tutorial
- escape characters
- limits of
intandfloat
Week 3 ¶
Objectives this week:
- Main objectives
- Distinguish sequence types from other types
- Use and recognize string concatenation
- Create and manipulate
lists - Use basic
listmethods and functions including:append();pop();remove();+for concatenation;len();min();max();sum(). - Compare and contrast string, lists, tuples vs. dictionaries
- Create and manipulate
dictionaries (add new entries, update values, remove entries) - Explain how numeric and string data can be represented in a machine
- Explain how fixed-length number representations affect accuracy and precision.
- Compare representations of integers to floating point numbers
- Describe underflow, overflow, round off, and truncation errors in data representations.
- Others
- Use square brackets to index into a string
- Be able to convert numbers between base 2 (binary) and base 10 (decimal)
- Use the math module to perform calculations
Monday ¶
- Retrieval Quiz 3.1
- Logistics reminders
- Reading 3: tonight
- Week 2 Reflections: tonight
- Forum 2: initial posts due tomorrow
- Homework 2: week from tomorrow
- Quiz 2 Friday. Format: questions like
- The following code is intended to something, exactly as we did in some class/lab/homework exercise. But it does not work as intended. (1) Circle one error, (2) Describe what is wrong (in a short phrase), and (3) Rewrite the code to fix that error.
- Give the value of the following Python expressions when evaluated in the Shell. (If an error would occur, describe what error occurs and why.)
- Suppose
x =some expression. Which of the following would print some value? (circle one letter) - Which of the following is the best definition of term from Unit 1 or Unit 2 list of terms
- Fill in the blanks so that the program below prints something.
- POGIL 3 in teams
- Model 1 (Lists, 10 min)
- Model 2 (Sequences, 15 min)
- Model 3 (Dictionaries, 20 min)
- Review
Wednesday ¶
- Retrieval Quiz 3.2 (and finishing 3.1 if needed)
- Logistics reminders
- Quiz 2 IN CLASS Friday. Review the readings, POGILs, slides, retrieval quizzes, etc.
- Slides 3
- Assignment statements vs item assignment statements
Thursday ¶
- Lab 3.A: types practice
- Lab 3.B: login id (string operations)
- Lab 3.C: sorting (list operations, algorithms)
- Lab 3.D: scores (dictionary operations)
Friday ¶
- Logistics reminders
- see the Moodle Calendar
- Quiz 2 IN CLASS today
- Reflection 3 due Monday
- Forum 2 revised posts due Tuesday
- Retrieval Quiz 3.3
- Lab code review
- Slides: data structures review; is tech neutral?
- Quiz 2