You'll want to watch out for a common mistake: forgetting to initialize variables. If you try to use a variable without first initializing it, you'll run into a NameError. This is the Python interpreter catching the mistake and telling you that you’re using an undefined variable. The fix is pretty simple: initialize the variable by assigning the variable a value before you use it.
Another common mistake to watch out for that can be a little trickier to spot is forgetting to initialize variables with the correct value. If you use a variable earlier in your code and then reuse it later in a loop without first setting the value to something you want, your code may wind up doing something you didn't expect. Don't forget to initialize your variables before using them!
Christine Rafla
Email us at - techlaboffice77@gmail.com
Nesta página do site você pode assistir ao vídeo on-line 26 Why Initializing Variables Matters | Python [ COMPLETE COURSE ] duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Tech Lab 16 Julho 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 192 vezes e gostou 3 espectadores. Boa visualização!