CSE 160 Section 1
Welcome!
TA 1 & TA 2
Agenda
Administrivia
Check to make sure you’re in Gradescope
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)
What Will Section Be Like
A bridge between homework and lecture
Written Check-ins
Section Is Meant To Help You
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
Ice Breakers
Ice Breakers
Get to know the people around you! With 3-4 people next to you, share your:
Then find two things in common (hopefully more in common than ‘we’re all taking 160 together!’)
Review and Python Tutor
Data types
So far you have learned about three data types: integers (int), strings (str), and booleans (bool).
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.
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
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
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
+ - * / // ** %
Written Check In
Installation Help
Follow the instructions here - if you’re having issues or have questions, please raise your hand and I’ll come over and fix it!
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.