June 23rd, 2021
Q: where could we find the zoom link for Sectionals?
A1: You should be able to find your zoom link on the cs198.stanford.edu website. If your section leader has not posted a zoom link yet, it will be up by tonight :)
Q: For section this week do we need to finish anything before we meet in terms of assignments? Or is the first day more of an introduction and getting to know each other? :)
A1: Introduction! Section will be fun and a chance to bond with other students and your SL before diving into code.
Q: Where do we find the sections?
A1: You should have gotten an email from the coordinators this morning saying your section assignment.
Q: If I type bit.right_clear(), does it mean the block below the robot is clear? the directions are a little confusing.
A1: Bit has two eyes and two legs. The side in front of the eyes and away from the legs is the “front.” The square to the right of the front is the “right” and the square to the left of the front is the “left.” We will show a demo of this
Q: My section was for 4:00pm wedsnsay, did I miss it already?
A1: No, 4pm PST is in a 2.5 hours from now. It is currently 1:37pm pst
Q: Do we have to submit yesterday’s homework /future assignments somewhere? Or do we just leave it after it saves?
A1: We will talk about submissions on assignments soon :)
Q: Where would we submit our finished code once we finish Assignment 1?
A1: We will talk about submissions soon :)
Q: Do we start sections this week?
A1: Yes.
Q: will the first wednesday section be happening today?
A1: Yes :)
Q: So I actually have to travel after this class, so I might miss my first sectional. Who do I contact about that?
A1: If you ever cannot make a section, no worries. Just make sure to attend another one! In order to do this, reach out to your section leader through email and let them know that you cannot make it. Then, go to the section schedule to 106a-8 on the cs198.stanford.edu and find a section you can make that week.
Q: How long are sections?
A1: 50 mins!
Q: I filled out the survey for sessions but I have not gotten an email yet.
A1: Could you send me an email @tarabeth@stanford.edu
Q: can you do multi-thread?
A1: Multi threading is convered in later CS classes such as CS110 and CS140
Q: what time is Thursday 8:00 am PST in IST?
A1: 8:30 PM I believe
Q: Will it run the code when you define it?
A1: One has to actually run the code for it to run. See the big RUN button on the top of the page
Q: Is this technique going to prevent having to write repetitive code?
A1: Yes :)
Q: Will writing shorter codes help a program to run faster?
A1: It depends! If each line of the code takes a lot of computing power (AKA a lot of effort from the computer) I can take a long time, even if it is short. The code we will be doing in 106A usually does not take a large amount of power so usually shorter, more orginized code is better :)
Q: How do we submit completed assignments?
A1: We will talk about submissions on assignments soon :)
Q: does it matter if a string uses apostrophes or quotation marks when using the attributes for bit?
A1: Either should work :)
Q: How did our functions run without us actually calling them?
A1: Great question! The experimental server handles this for us. Once we start coding in pycharm, we will code a MAIN function which will tell the comptuer which code to run first.
Q: Could we have written the code in a way that Bit does not need to go through each row twice?
A1: There are many ways to solve these problems! Feel free to try different ways
Q: On the homework it said to check the code for clean style. What does that mean?
A1: Good style means it meets style standards that make your code easy to read. Feel free to reference this link, in the assignment 1 area to check out what good style means. Whenever it references “karel” it means bit! Soon we will have our own section of the website dedicated to style
Q: Is this file we are using as filename, is it predefind somewhere like if I use a different server with same code, will that work ?
A1: If you look at the dropdown menu to the right of num, you can see the function being called with a filename in the parenthesis. This is where the filename is coming from.
Q: In Python can you write code without any function?
A1: It depends on what enviornment you are writing python in. In the experiemntaly server, make sure to use functions.
Q: What is the default direction of bit in the experimental server?
A1: I think it depends on the problem, but can be seen in the animation of the problem
Q: as of right now, is our code graded on style?
A1: Yes, your code will always have a functionality grade and a style grade
Q: So black square below instead of on the right meaning blocked? How abt two rows below?
A1: Yes, those are blocked
Q: We repeated cover_side() bit.right() and bit.move() can we use a while loop?
A1: We will talk about new types of loops soon that help with this problem:)
Q: is this called a nested function?
A1: No, because these function are both at the same indent level, they are NOT nested.
Q: Is our section time in the email PST or our time?
A1: PST
Q: Are the link for our sections just in the email that was sent to us or can we find it somewhere else?
A1: If it was not on the email sent to you it should be on the https://cs198.stanford.edu/cs198/auth/default.aspx website by tonight
Q: How do we join our sections when they happen? Will we get a zoom link?
A1: Yes! You will get an email from your section leader with the zoom link and they are also on the cs198 website.
Q: Since style matters for our code how do we know if our code has “good style”?
A1: Yes! Checkout the website for Python guide and click the style section. It will be up later today
Q: How do we see which section we are in?
A1: You should get an email from the 198 coords
Q: can you also use ‘if’, for example if front is clear, turn right, then repeat them?
A1: Usually if you want to repeat something so long as some condition is true, it is better to use a while loop than repeat if statements a bunch of time.
Q: I got an error saying that "local variable 'bit' referenced before assignment." What does that mean?
A1: Make sure to put bit between the parenthesis in the def line of your helper functions.
Q: can we use 'tab' instead of 4 spaces?
A1: That should work. :)
Q: how to hand in the homework
A1: more info to come later this week
Q: How do we turn in homework assignments?
A1: More info coming later this week
Q: I got an email but no zoom link for the section is the link posted anywhere?
A1: cs198.stanford.edu
Q: Would you prefer for us to make style adjustments for the first half of the current HW assignment? (I already completed it last night before learning the information today)
A1: Yes please
Q: Will our section leaders tell us how to submit homework?
A1: We will explain on the assignment handout later this week.
Q: how many students will attend one section together
A1: ~15
Q: Sorry I missed it, where do we get the style guide?
A1: It will be posted on the website later today.
Q: The homework is due Wednesday right? :)
A1: Tuesday, June 29th at 11:55pm PT
Q: Will our hw assignments be graded on how efficient and well coded they are? For example will we get marked down not using loops if we could have used them?
A1: You are not graded on efficiency, but you are graded on your code style.
Q: Can we somehow get the color of the right block?
A1: No :/
Q: Are assignments automatically submitted when they are completed?
A1: No. There is a link you will need. More info coming on this soon. Your code will save through :)
Q: Just out of couriosity, how many students are taking this course right now?
A1: ~120 students
Q: Do the instructions always guide us towards the correct style or is it our own job? For example "you need 3 while loops"
A1: Yes, sometimes they will! If it says three while loops, aim for that!
Q: When will the second half of the first HW be published?
A1: Later today
Q: will our mark change if we use recursion instead of loops?
A1: Please only use what we have learned in class so far. You will lose marks if you use things outside of what we have covered in lecture.