Python Fundamentals Training - More on Functions

preview_player
Показать описание

In the beginning of class 2, Simeon will:
- revisit argument declaration and passing
- cover some common gotchas
- talk about namespaces and scoping
- reading/writing files

Рекомендации по теме
Комментарии
Автор

I'm not sure if anyone will read this, but what happens in python, if "x" exists in the global namespace, but not the local. and you have a definition such as x = x + 1? will it define a local variable x with the result of the global variable x + 1?

mmafan