Closed luisesanmartin closed 1 year ago
Participant questions:
Wei's feedback:
hw = 'hello World'
consider giving it a better variable name.//
which will return an integer.format()
and make .format()
something just to recognize, as increasingly people are using f-strings and .format
are more from legacy code.
- [x] Reduce time assigned to exercises from 10 to 5 min
Done in 49e770d8f9adb547cecc5b6b451918541e7a4a60
Methods vs function: IIRC function is generic; methods are functions operated on an object, more often used in the land of OOP. Not necessary to introduce OOP, just a note.
This is what I said right? Maybe in more layman terms, but I will favor "understandable to layman" over "the most correct" in this session.
Consider cover f-string in place of .format() and make .format() something just to recognize, as increasingly people are using f-strings and .format are more from legacy code.
I have removed the places I use format in the rest of this session. We should show .format()
and I like where I currently show it as it is right after we talk about string methods. And right after we do we introduce f-strings. And I think this agrees with what you say. Or is your comment that we should remove .format()
from all other sessions as well?
hw = 'hello World'
consider giving it a better variable name.
Done in a6564d2e81fe96ae6d2249a9eed61eb643ea2abc
- division: consider cover
//
which will return an integer
Added to table of operators in 2457f8d07827264e9118b424b505e4318ee26e60 but did not add more about it
- Exercise 2c passed then failed after the participant finished the rest of the exercises due to variable reuse.
Not sure I follow exactly. But since this exercise is about updating and overwriting variables there is always going to be some order of running the cells that will not pass the assertion. But I think that is also a part of the exercise. To get a felling for how running cells in order or not makes a difference in a notebook context.
Participant questions:
@kbjarkefur's answer in sub bullets. Let me know if anyone of y'all disagree with my conclusions
+=
is introduced in 1161d7ba2c3aa2b4114a716fab5fe9ad405e402019_000
notation, but do not think it is used commonly enough for us to include in session