CSE 163
Control Structures & Strings
Arpan Kapoor�Summer 2026��💭Icebreaker (discuss with neighbors):
What’s the last movie or TV show you watched or are currently watching? Add to our Slido!
#2348882
Agenda
Slido Q&A will be open all class
Overview
What is this class?
#2348882
Overview
Who is taking this class?
This class is designed to have students from
#2348882
Who am I?
Instructor: Arpan Kapoor
Teaching Assistants: 4 Amazing TAs!
Me!
#2348882
CSE 163 TAs!
6
Katie Gower
(AA/AB)
Melissa Reyes-Ramirez (AB/AC)
Patrick Yu
(AC)
Sheamin Kim
(AA)
#2348882
Lesson Review Due
Attend:
Class Lecture
Mon
Tue
Attend:
Class Lecture
Wed
Attend:
Quiz Section
Thur
Prog. Prac. Released/Due�Section Check-in Released�
Lesson Review Due
Relax!
Fri
Lesson Review Due
Section Check-in Due
Homework Released/Due
�
Attend:
Class Lecture
Pacing
We are releasing the lessons and assessments as we move throughout the quarter
As a general note: Interacting compassionately and empathetically is key!
Community is built by all of us! We need you to participate in the active classroom environment. This means
Final Project
#2348882
Course Resources
#2348882
Ways to Execute Code (Main-Method Pattern)
Version 1
Version 2
print('Hello World!')
def main():
print('Hello World!')
if __name__ == '__main__':
main()
#2348882
Types and Expressions
a = 4.0
b = 3 * 2 + 4 ** 2
x = True
y = 9 < 4
#2348882
Loops and Conditionals
n = 5
if n < 10:
print(‘A’)
elif n < 20:
print(‘B’)
else:
print(‘C’)
#2348882
Anatomy of a Function
14
def function_name(parameter, ...):
#Function code
return value
def keyword
Function name
Optional
parameters
Function code
colon
Indentation
Return statment
#2348882
Strings
#2348882
String Methods vs. len
Call functions on strings using syntax
This is not true for len (or other built-in Python functions)
Can you think of other built-in Python functions?
len(s)
s.function(params)
#2348882
Lesson Highlights
Main method pattern!
def main():
print('Hello world!')
if __name__ == '__main__':
main()
#2348882