(조교) CS101 TA 진행방향, 느낀 점 (in English)
[log] 2 min read

Teaching
1. Frequent mistakes
- WK1
- not putting
:(colon) after for loop - no indentation
- misspelling
range
- not putting
- Other weeks
- not putting
:(colon) after if/while loop - using
elsewithwhile - IndentationError
- not putting
2. Frequent tips
- WK1
- use
_instead ofi - group indent by tabbing the block
- write the rest of the function name automatically by pressing tab
- delete repeating parts and fill for loop instead
- copy-reuse the first four lines loading library (
cs1robots) and world data (load_world,create_world, etc.)
- use
- Other weeks
- copy the code from other task and modify a very little bit
printstatement to debugctrl + /to comment out a linewhile Trueandbreaktabandshift + tabto indent and unindent- Block indent by scrolling through multiple lines
ctrl + hto replace

3. Easy refactoring
repetition -> for loop
1for i in range(5): 2 # Your code here (repeated action)repetition -> function
1def my_function(): 2 # Your code here (repeated action)action
ABABA-> halt in the middle of the last loop offor1for i in range(3): 2 # Your code here (repeated action) 3 if i == 2: 4 break 5 # Rest of the code
Learning
- How to teach
- How to explain the concept
- How to give hints
- How to give feedback
- How to motivate