Knowledge Check
Answer these in a Markdown cell or short Quarto note.
- Why is Week 5 called “polyglot awareness” rather than “Python replacement”?
- Name one task where R is the better default for this course.
- Name one task where Python might be useful.
- Why does
my_list[1]return the second item in Python? - What is the difference between
=and==? - What does
requirements.txtdocument? - What is the One Step, One Cell rule?
- What are three parity checks you should run after translating R code to Python?
- Why should notebook outputs be cleared before committing?
- What does
reticulateallow R to do?
Short Applied Check
Given the R expression:
Write the Python/pandas equivalent and name the missingness check you would run before trusting it.