CS 61A Discussion 0 Lost on the Moon Albert Xu Slides: - - PowerPoint PPT Presentation

cs 61a discussion 0
SMART_READER_LITE
LIVE PREVIEW

CS 61A Discussion 0 Lost on the Moon Albert Xu Slides: - - PowerPoint PPT Presentation

CS 61A Discussion 0 Lost on the Moon Albert Xu Slides: albertxu.xyz/teaching/cs61a/ Announcements Make sure youre on Piazza! Most o ffi cial announcements will be there. Attend the lab section matching this one so I can see you again!!


slide-1
SLIDE 1

CS 61A Discussion 0

Lost on the Moon

Slides: albertxu.xyz/teaching/cs61a/

Albert Xu

slide-2
SLIDE 2

Announcements

  • Make sure you’re on Piazza! Most official announcements

will be there.

  • Attend the lab section matching this one so I can see you

again!!

  • Tuesday 6:30-8:00PM in Soda 275
  • Lab 0 is out! It’s mainly setup for Python
slide-3
SLIDE 3

About Me

Hey! I’m Albert

Xu, a junior studying

  • CS. This will be my

fourth semester teaching 61A, but my first time using this snazzy Keynote theme! Hope y’all like dark theme, b/c I do!

slide-4
SLIDE 4

About Me

Hey! I’m Albert

Xu, a junior studying

  • CS. This will be my

fourth semester teaching 61A, but my first time using this snazzy Keynote theme! Hope y’all like dark theme, b/c I do!

  • from Fayetteville,

Arkansas

  • enjoys meeting

new people and waking up late

slide-5
SLIDE 5

About Me

  • from Fayetteville,

Arkansas

  • enjoys meeting

new people and waking up late Find slides at albertxu.xyz/teaching/cs61a Contact me - albertxu3@berkeley.edu

Hey! I’m Albert

Xu, a junior studying

  • CS. This will be my

fourth semester teaching 61A, but my first time using this snazzy Keynote theme! Hope y’all like dark theme, b/c I do!

slide-6
SLIDE 6

My Time with 61A

Fall ’17

Took CS61A

slide-7
SLIDE 7

My Time with 61A

Fall ’17

Took CS61A

Spring ’18

CSM Junior Mentor Lab Assisted

slide-8
SLIDE 8

My Time with 61A

Fall ’17

Took CS61A

Spring ’18

CSM Junior Mentor Lab Assisted

Fall ’18

First-time TA! CSM Senior Mentor

slide-9
SLIDE 9

My Time with 61A

Fall ’17

Took CS61A

Spring ’18

CSM Junior Mentor Lab Assisted

Fall ’18

First-time TA! CSM Senior Mentor

Spring ’19

TA! CSM Senior Mentor

slide-10
SLIDE 10

My Time with 61A

Fall ’17

Took CS61A

Spring ’18

CSM Junior Mentor Lab Assisted

Fall ’18

First-time TA! CSM Senior Mentor

Spring ’19

TA! CSM Senior Mentor

Summer ‘19

TA!

slide-11
SLIDE 11

My Time with 61A

Fall ’17

Took CS61A

Spring ’18

CSM Junior Mentor Lab Assisted

Fall ’18

First-time TA! CSM Senior Mentor

Spring ’19

TA! CSM Senior Mentor

Summer ‘19

TA!

Fall ’19

TA! CSM Senior Mentor

slide-12
SLIDE 12

Course Logistics

print(“welcome to 61a!”)

  • Lecture is webcasted, choose if you want to go

Read the policies on the course page - cs61a.org/articles/about.html

slide-13
SLIDE 13

print(“welcome to 61a!”)

  • Lecture is webcasted, choose if you want to go
  • Weekly homework, for completion. This means that sometimes

you will get credit even if you don’t pass all the tests, but only if you show significant effort! There are no hidden tests, so if it works

  • n your computer it will on ours!

Read the policies on the course page - cs61a.org/articles/about.html

Course Logistics

slide-14
SLIDE 14

print(“welcome to 61a!”)

  • Lecture is webcasted, choose if you want to go
  • Weekly homework, for completion. This means that sometimes

you will get credit even if you don’t pass all the tests, but only if you show significant effort! There are no hidden tests, so if it works

  • n your computer it will on ours!
  • Weekly lab, for correctness. This should be slightly easier than

homework, and come to in-person lab section to get help! Read the policies on the course page - cs61a.org/articles/about.html

Course Logistics

slide-15
SLIDE 15

print(“welcome to 61a!”)

  • Lecture is webcasted, choose if you want to go
  • Weekly homework, for completion. This means that sometimes

you will get credit even if you don’t pass all the tests, but only if you show significant effort! There are no hidden tests, so if it works

  • n your computer it will on ours!
  • Weekly lab, for correctness. This should be slightly easier than

homework, and come to in-person lab section to get help!

  • Four projects over the semester, find a good partner!

Read the policies on the course page - cs61a.org/articles/about.html

Course Logistics

slide-16
SLIDE 16

print(“welcome to 61a!”)

  • Lecture is webcasted, choose if you want to go
  • Weekly homework, for completion. This means that sometimes

you will get credit even if you don’t pass all the tests, but only if you show significant effort! There are no hidden tests, so if it works

  • n your computer it will on ours!
  • Weekly lab, for correctness. This should be slightly easier than

homework, and come to in-person lab section to get help!

  • Four projects over the semester, find a good partner!
  • Homework, lab, and projects will all be on OKPY

Read the policies on the course page - cs61a.org/articles/about.html

Course Logistics

slide-17
SLIDE 17

print(“welcome to 61a!”)

  • Lecture is webcasted, choose if you want to go
  • Weekly homework, for completion. This means that sometimes

you will get credit even if you don’t pass all the tests, but only if you show significant effort! There are no hidden tests, so if it works

  • n your computer it will on ours!
  • Weekly lab, for correctness. This should be slightly easier than

homework, and come to in-person lab section to get help!

  • Four projects over the semester, find a good partner!
  • Homework, lab, and projects will all be on OKPY
  • Two midterms and one final

Read the policies on the course page - cs61a.org/articles/about.html

Course Logistics

slide-18
SLIDE 18

print(“welcome to 61a!”)

  • Lecture is webcasted, choose if you want to go
  • Weekly homework, for completion. This means that sometimes

you will get credit even if you don’t pass all the tests, but only if you show significant effort! There are no hidden tests, so if it works

  • n your computer it will on ours!
  • Weekly lab, for correctness. This should be slightly easier than

homework, and come to in-person lab section to get help!

  • Four projects over the semester, find a good partner!
  • Homework, lab, and projects will all be on OKPY
  • Two midterms and one final
  • My office hours TBD

Read the policies on the course page - cs61a.org/articles/about.html

Course Logistics

slide-19
SLIDE 19

print(“welcome to 61a!”)

  • Lecture is webcasted, choose if you want to go
  • Weekly homework, for completion. This means that sometimes

you will get credit even if you don’t pass all the tests, but only if you show significant effort! There are no hidden tests, so if it works

  • n your computer it will on ours!
  • Weekly lab, for correctness. This should be slightly easier than

homework, and come to in-person lab section to get help!

  • Four projects over the semester, find a good partner!
  • Homework, lab, and projects will all be on OKPY
  • Two midterms and one final
  • My office hours TBD

Read the policies on the course page - cs61a.org/articles/about.html

Course Logistics

y’all should check out edX! I’m actively trying to make it useful!

slide-20
SLIDE 20

Discussion Logistics

I like putting flavortext or guiding questions under titles, just fyi!

slide-21
SLIDE 21

Discussion Logistics

I like putting flavortext or guiding questions under titles, just fyi! Two components: 1) Mini Lecture 2) Practice with Worksheet

slide-22
SLIDE 22

Discussion Logistics

I like putting flavortext or guiding questions under titles, just fyi! Two components: 1) Mini Lecture 2) Practice with Worksheet

It’s a balancing act between these two, but I think I tend to err on the side of talking more.

slide-23
SLIDE 23

Discussion Logistics

I like putting flavortext or guiding questions under titles, just fyi! Two components: 1) Mini Lecture 2) Practice with Worksheet

It’s a balancing act between these two, but I think I tend to err on the side of talking more. If you think I’m talking too much and would prefer I let y’all do the worksheet alone, let me know on the weekly attendance form.

slide-24
SLIDE 24

Discussion Logistics

I like putting flavortext or guiding questions under titles, just fyi! Two components: 1) Mini Lecture 2) Practice with Worksheet

Beyond this, I really don’t mind what you do in

  • discussion. Feel free to do whatever on your computer
  • r phone if you already know the content!

It’s a balancing act between these two, but I think I tend to err on the side of talking more. If you think I’m talking too much and would prefer I let y’all do the worksheet alone, let me know on the weekly attendance form.

slide-25
SLIDE 25

Discussion Logistics

I like putting flavortext or guiding questions under titles, just fyi! Two components: 1) Mini Lecture 2) Practice with Worksheet

Beyond this, I really don’t mind what you do in

  • discussion. Feel free to do whatever on your computer
  • r phone if you already know the content!

But I would love it if y’all answered my questions and discussed with each other. 😎

It’s a balancing act between these two, but I think I tend to err on the side of talking more. If you think I’m talking too much and would prefer I let y’all do the worksheet alone, let me know on the weekly attendance form.

slide-26
SLIDE 26

Discussion Logistics contd.

Discussion Participation Points: I will put up an attendance word on the board every week - the attendance link will not change, just the word! Otherwise, discussion is not mandatory! Anyone is welcome to come to my discussion or lab as long as there are free seats(and I don’t anticipate there being any issues with space). Other TA’s may have differing policies…

slide-27
SLIDE 27

Community

  • This is an intro class! It’s okay to know nothing.
slide-28
SLIDE 28

Community

  • This is an intro class! It’s okay to know nothing.
  • Ask lots of questions, whether to me in lab/discussion or

in office hours!

slide-29
SLIDE 29

Community

  • This is an intro class! It’s okay to know nothing.
  • Ask lots of questions, whether to me in lab/discussion or

in office hours!

  • Help other students if they’re having trouble - teaching

helps you solidify your understanding of the content.

  • Piazza too!
slide-30
SLIDE 30

Community

  • This is an intro class! It’s okay to know nothing.
  • Ask lots of questions, whether to me in lab/discussion or

in office hours!

  • Help other students if they’re having trouble - teaching

helps you solidify your understanding of the content.

  • Piazza too!
  • Let me know if I say anything condescending…
slide-31
SLIDE 31

Lab Logistics

Come to lab if…

  • you want help with the assigned lab for the week
slide-32
SLIDE 32

Lab Logistics

Come to lab if…

  • you want help with the assigned lab for the week
slide-33
SLIDE 33

Lab Logistics

Come to lab if…

  • you want help with the assigned lab for the week
  • you have questions about any assignments or content
slide-34
SLIDE 34

Lab Logistics

Come to lab if…

  • you want help with the assigned lab for the week
  • you have questions about any assignments or content
  • …or you just want to hang out and talk to other students!
slide-35
SLIDE 35

Lab Logistics

Come to lab if…

  • you want help with the assigned lab for the week
  • you have questions about any assignments or content
  • …or you just want to hang out and talk to other students!

We will have some wonderful academic interns volunteering their time, so please be nice to them!

slide-36
SLIDE 36

Lost on the Moon

Icebreaker Activity! First, decide on a ranking on your own. Rank the usefulness of these items from 1-15. Write it in the first column

slide-37
SLIDE 37

Lost on the Moon

Icebreaker Activity! Now talk in groups of four and come to a collective ranking of the 15 items. Write it in the second column

slide-38
SLIDE 38

Lost on the Moon

Icebreaker Activity! NASA’s Rankings! Write it in the third column

slide-39
SLIDE 39

Tips for 61A

what your priorities should be…

  • Keep up with content! You might even consider keeping ahead of

content, by watching past webcasts! This way, if an emergency comes up a particular week, you’ll still be caught up!

slide-40
SLIDE 40

Tips for 61A

what your priorities should be…

  • Keep up with content! You might even consider keeping ahead of

content, by watching past webcasts! This way, if an emergency comes up a particular week, you’ll still be caught up!

  • If you’re planning to go to OH and ask for help, go early! This

means that you should probably start early, at least on projects (at least a week before due date)

slide-41
SLIDE 41

Tips for 61A

what your priorities should be…

  • Keep up with content! You might even consider keeping ahead of

content, by watching past webcasts! This way, if an emergency comes up a particular week, you’ll still be caught up!

  • If you’re planning to go to OH and ask for help, go early! This

means that you should probably start early, at least on projects (at least a week before due date)

  • Do lots of practice(past) midterms before the actual test. You can

find these on the Resources tab of the 61A website.

slide-42
SLIDE 42

Tips for 61A

what your priorities should be…

  • Keep up with content! You might even consider keeping ahead of

content, by watching past webcasts! This way, if an emergency comes up a particular week, you’ll still be caught up!

  • If you’re planning to go to OH and ask for help, go early! This

means that you should probably start early, at least on projects (at least a week before due date)

  • Do lots of practice(past) midterms before the actual test. You can

find these on the Resources tab of the 61A website.

  • Get all the extra credit points you can!
slide-43
SLIDE 43

Tips for 61A

what your priorities should be…

Topics:

  • recursion
  • environment diagramming
  • data abstraction
  • Keep up with content! You might even consider keeping ahead of

content, by watching past webcasts! This way, if an emergency comes up a particular week, you’ll still be caught up!

  • If you’re planning to go to OH and ask for help, go early! This

means that you should probably start early, at least on projects (at least a week before due date)

  • Do lots of practice(past) midterms before the actual test. You can

find these on the Resources tab of the 61A website.

  • Get all the extra credit points you can!
slide-44
SLIDE 44

Tips for 61A

what your priorities should be…

Topics:

  • recursion
  • environment diagramming
  • data abstraction
  • Keep up with content! You might even consider keeping ahead of

content, by watching past webcasts! This way, if an emergency comes up a particular week, you’ll still be caught up!

  • If you’re planning to go to OH and ask for help, go early! This

means that you should probably start early, at least on projects (at least a week before due date)

  • Do lots of practice(past) midterms before the actual test. You can

find these on the Resources tab of the 61A website.

  • Get all the extra credit points you can!

Other Resources:

  • CSM (super duper helpful)
  • CS370 one-on-one tutoring
  • albertwu.org
slide-45
SLIDE 45

Python Intro

since I think y’all would like to learn something about CS today!

slide-46
SLIDE 46

Python Intro

since I think y’all would like to learn something about CS today! Python is a language.

slide-47
SLIDE 47

Python Intro

since I think y’all would like to learn something about CS today! Python is a language. The interpreter reads the commands we tell it in the Python language and does something cool!

slide-48
SLIDE 48

Python Intro

since I think y’all would like to learn something about CS today! Python is a language. The interpreter reads the commands we tell it in the Python language and does something cool! Any time we run Python code, we are using the interpreter.

slide-49
SLIDE 49

Python Intro

since I think y’all would like to learn something about CS today! Python is a language. The interpreter reads the commands we tell it in the Python language and does something cool! Any time we run Python code, we are using the interpreter. Interactive Interpreter - built into terminal. It lets you type in lines of code one at a time to see what happens!

slide-50
SLIDE 50

Expressions vs. Statements

  • What is a value?


Expressions Statements

slide-51
SLIDE 51

Expressions vs. Statements

  • What is a value?

  • Primitive, such as int, list,

string, boolean


Expressions Statements

slide-52
SLIDE 52

Expressions vs. Statements

  • What is a value?

  • Primitive, such as int, list,

string, boolean


  • Can be assigned to a name


Expressions Statements

slide-53
SLIDE 53

Expressions vs. Statements

  • What is a value?

  • Primitive, such as int, list,

string, boolean


  • Can be assigned to a name

  • What is an expression?

Expressions Statements

slide-54
SLIDE 54

Expressions vs. Statements

  • What is a value?

  • Primitive, such as int, list,

string, boolean


  • Can be assigned to a name

  • What is an expression?
  • Evaluate to values

Expressions Statements

slide-55
SLIDE 55

Expressions vs. Statements

  • What is a value?

  • Primitive, such as int, list,

string, boolean


  • Can be assigned to a name

  • What is an expression?
  • Evaluate to values
  • Python interpreter has to

think to turn an expression into a value

Expressions Statements

slide-56
SLIDE 56

Expressions vs. Statements

  • What is a value?

  • Primitive, such as int, list,

string, boolean


  • Can be assigned to a name

  • What is an expression?
  • Evaluate to values
  • Python interpreter has to

think to turn an expression into a value

  • Think about expressions as

questions, values as answers

Expressions Statements

slide-57
SLIDE 57

Expressions vs. Statements

  • What is a value?

  • Primitive, such as int, list,

string, boolean


  • Can be assigned to a name

  • What is an expression?
  • Evaluate to values
  • Python interpreter has to

think to turn an expression into a value

  • Think about expressions as

questions, values as answers

  • Every expression evaluates to some value


Expressions Statements

slide-58
SLIDE 58

Expressions vs. Statements

  • What is a value?

  • Primitive, such as int, list,

string, boolean


  • Can be assigned to a name

  • What is an expression?
  • Evaluate to values
  • Python interpreter has to

think to turn an expression into a value

  • Think about expressions as

questions, values as answers

  • Every expression evaluates to some value

  • On the other hand, statements change

something about the environment


  • They won’t evaluate to anything, just

change the program flow


Expressions Statements

slide-59
SLIDE 59

Expressions vs. Statements

  • What is a value?

  • Primitive, such as int, list,

string, boolean


  • Can be assigned to a name

  • What is an expression?
  • Evaluate to values
  • Python interpreter has to

think to turn an expression into a value

  • Think about expressions as

questions, values as answers

  • Every expression evaluates to some value

  • On the other hand, statements change

something about the environment


  • They won’t evaluate to anything, just

change the program flow


  • Ex: while loop, if statement, def

statement, assignment statement


Expressions Statements

slide-60
SLIDE 60

Expressions vs. Statements

  • What is a value?

  • Primitive, such as int, list,

string, boolean


  • Can be assigned to a name

  • What is an expression?
  • Evaluate to values
  • Python interpreter has to

think to turn an expression into a value

  • Think about expressions as

questions, values as answers

  • Every expression evaluates to some value

  • On the other hand, statements change

something about the environment


  • They won’t evaluate to anything, just

change the program flow


  • Ex: while loop, if statement, def

statement, assignment statement


  • It’s important to know when you have

an expression, and when you have a statement


Expressions Statements

slide-61
SLIDE 61

Expressions vs. Statements

  • What is a value?

  • Primitive, such as int, list,

string, boolean


  • Can be assigned to a name

  • What is an expression?
  • Evaluate to values
  • Python interpreter has to

think to turn an expression into a value

  • Think about expressions as

questions, values as answers

  • Every expression evaluates to some value

  • On the other hand, statements change

something about the environment


  • They won’t evaluate to anything, just

change the program flow


  • Ex: while loop, if statement, def

statement, assignment statement


  • It’s important to know when you have

an expression, and when you have a statement


  • You can’t return the value of a

statement, but you can return the value of an expression!

Expressions Statements

slide-62
SLIDE 62

Thanks for coming.

Have a great rest of your week! :)

Attendance: links.cs61a.org/albert-disc Slides: albertxu.xyz/teaching/cs61a/