1 of 7

CSE 163

Introduction to Python

Hunter Schafer

🎶 Listening to: Glass Animals

💬 Discuss with Neighbors: �What’s been your favorite class at UW so far?

2 of 7

This Time

  • Python Crash Course - Day 2
    • Hello world
    • Variables
    • Expressions
    • Types + Casting
    • Loops
    • Conditionals
    • Functions (parameters + returns)

Last Time

  • Overview of class
  • Syllabus

2

3 of 7

Questions during Class

Feel free to raise your hand during class to ask questions! Questions are an important part of the learning process.

  • During time to work in groups, TAs and Hunter will be walking around and can answer questions individually!

If we miss your question in class, feel free to ask after class or post on EdStem so we can answer later!

3

4 of 7

Reminder:�Motivation

We are doing this flipped classroom model this quarter. This matches results from education research on how people actually learn (hint: it’s not by listening). Requires active participation.

All the readings on Ed are written by me* so you’re getting the same content as a live lecture, but in a more interactive and self-paced format.

Now this opens up free time in the class-sessions to collaboratively work with your peers on these practice problems!

* Editing credit goes to Wen Qiu, Mitchell Estberg and all TAs

4

5 of 7

Recap: Lesson

Most of lesson should have been mostly familiar (variables, if statements, etc.). Some new Python specific things.

Main method pattern!

Syntax looks different!

  • Can’t explain entire grammar. Learn by looking at fragments.
  • Gets better with practice! Interact with lessons, trial and error
  • Indentation is important!

5

6 of 7

Group Work:

Best Practices

When you first working with this group:

  • Introduce yourself!
  • If possible, angle one of your screens so that everyone can discuss together

Tips:

  • Starts with making sure everyone agrees to work on the same problem
  • Make sure everyone gets a chance to contribute!
  • Ask if everyone agrees and periodically ask each other questions!
  • Call TAs over for help if you need any!

6

7 of 7

Next Time

Quiz Section

  • Course Infrastructure
  • Testing & Debugging Process
  • Style

Lesson

  • Strings
  • Lists
  • None
  • Documenting code

Before Next Time

  • Go to section tomorrow
  • Complete the Lesson 2 reading before Friday!

7