Загрузка...

Do you REALLY know Python? 90% of Beginners Fail This

Most Python beginners get this WRONG! 🤯🐍

Can you guess the output before the video ends? This is one of Python's most famous "gotchas" involving mutable default arguments.

Why does this happen? In Python, default arguments are evaluated only ONCE at the time of function definition, not every time the function is called. So, that empty list [] is the same object across all calls!

Did you get it right? Let me know in the comments! 👇

#python #codingtips #programminglife #pythonlearning #softwaredevelopment #codingquiz #pythonprogramming

Видео Do you REALLY know Python? 90% of Beginners Fail This канала pythonKam
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять