1 of 17

CSE 160 Section 1

Welcome!

TA 1 & TA 2

2 of 17

Agenda

  • Quick introduction from me and administrivia (5 min)
  • General overview of section (10 min)
  • Icebreakers (10 min)
  • Short review (and Python Tutor) (10 min)
  • Installation help (HW0) (remainder)

3 of 17

Administrivia

Check to make sure you’re in Gradescope

  • Most assignments will be here
  • Make a post on the Ed board if you’re not in the Gradescope and we’ll get things sorted out

Complete Written Check-In Week 1 on Gradescope (due Thursday 1/9 at 11:59pm)

Complete the “About You” survey on Gradescope (due Friday 1/10 at 11:59pm)

Homework 0 on Gradescope (due Friday 1/10 at 11:59pm)

  • Does not count towards homework

4 of 17

What Will Section Be Like

A bridge between homework and lecture

  • Review topics from lecture
  • Work on practice problems
  • Sometimes will introduce homework assignments
  • A place to ask questions
  • Working on Written Check-ins

5 of 17

Written Check-ins

  • Completed on Gradescope.
    • We will go over the problems and answers during sections!
  • Counts towards 5% of your overall grade
  • Section codes are only given out if you attend in-person
    • If you have at least 8/10 correct section codes, you will be eligible for an extra resubmission.
  • Submitting late will result in 50% loss of credit. Incorrect section codes will not impact your grade.

6 of 17

Section Is Meant To Help You

  • It helps us so much if you participate
  • It’s ok to get stuff wrong
  • There’s no such thing as a stupid question
  • Group work is highly highly encouraged
    • Meet new people!
    • Stronger learning experience!

Let me know at any point whether what we’re doing is useful! There’s always a plan, but there’s always room to change the plan

7 of 17

Ice Breakers

8 of 17

Ice Breakers

Get to know the people around you! With 3-4 people next to you, share your:

  • Name and pronouns
  • Major and some interests
  • What made you want to take CSE 160

Then find two things in common (hopefully more in common than ‘we’re all taking 160 together!’)

9 of 17

Review and Python Tutor

10 of 17

Data types

So far you have learned about three data types: integers (int), strings (str), and booleans (bool).

  • Integers are any whole numbers: 1, 2, 3
  • Strings are any characters enclosed in quotation marks: “hi”, ‘3’, “This is a string”.
  • Booleans are either True or False, and often arise from expressions: 3 > 2, “a” == “b”.

11 of 17

Operators

Here are some common python operators you might encounter in this class:

Math

Boolean/Comparison

+

-

*

/

**

//

>

<

==

!=

%

and

or

not

in

You may be able to guess what some of these mean, but it’s ok if you don’t know them all! We will cover them throughout the course.

12 of 17

Variable assignment =

In python, variables can take on any data by using an = sign.

variable_name = value

Example: x = 1

Note: it matters what is on the left and right side of the equal side!

Error: 1 = x

Unlike in math a single equals sign does not mean equality. Use == for that instead.

Does x equal 1?

x == 1

Set x equal to 1

x = 1

13 of 17

Expressions

Work with the people around to determine what each expression evaluates to.

1 / 2 + 2 ** 3

2 ** 4 == 20 - 4 + “hi”

(1 + 1 == 2 and 3 * 3 > 6) or “I love huskies” == True

14 of 17

Python Tutor

Now, with the groups that you did your quick icebreaker with, take 5-10 minutes to explore Python Tutor

Things to try out

  • Variable “rebinding” (x = x + 1)
  • Printing out variables at different points
  • The different mathematical operations (see if you can figure out what some of these more arcane looking ones do!)

+ - * / // ** %

15 of 17

Written Check In

16 of 17

Installation Help

  1. Go to the course website: cse.uw.edu/160
  2. Go to Homework, then to Homework 0
  3. Select “Setup”

Follow the instructions here - if you’re having issues or have questions, please raise your hand and I’ll come over and fix it!

17 of 17

End of Section

All for now - covered all the content for today, so feel free to go

Stick around for installation help

Make sure to get your section code!

** Note that section codes are only given in-person and are not given through email, Ed, or other mediums.