Python interview question #13: Swapping variables
Автор: Python and Pandas with Reuven Lerner
Загружено: 2025-04-24
Просмотров: 139
Here's a simple, fun question that you might get asked: How can you swap the values assigned to two variables?
In this video, I explain not only how you can do it (with tuple unpacking), but why it works — giving you a serious edge over people who only know the syntax, but don't understand the underlying reason. If they ask you this question at an interview, you'll know what to say.
To download the Jupyter notebooks I used in this course, go to https://AcePythonInterviews.com .
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: