Ravindra BagaleCourses & study guides

18. Interview Questions and Answers

18.1 Python and Jupyter

Q1. Why use a virtual environment?

A venv isolates project packages so versions do not clash with other projects. I create one per course or client project and install pandas, numpy, matplotlib and seaborn there before launching Jupyter.

Q2. List vs dict — when do you use each?

A list is an ordered sequence (e.g. city names). A dict maps keys to values (e.g. city → manager). For tabular analysis I move to pandas quickly; lists/dicts stay for small configs.

Q3. What is a Jupyter notebook good for?

Combining code, results and markdown narrative in one place — ideal for EDA and sharing an analysis path. For production pipelines I would later refactor stable code into .py modules.

Ravindra Bagale's Tip

Interview madhe khup students “I know Python” mhanun syntax path karun yetat pan venv / notebook hygiene sangtat nahi. Practical habit sanga. Dhyan rakho!