About 50 results
Open links in new tab
  1. How can I use a global variable in a function? - Stack Overflow

    Jul 11, 2016 · How do I create or use a global variable inside a function? How do I use a global variable that was defined in one function inside other functions? Failing to use the global keyword where …

  2. Add a folder to the PATH environment variable in Windows 10 (with ...

    On StackOverflow and on the internet in general, there are outdated and few guides on how to add a specific folder to the Windows 10 PATH environment variable of the user. I think a complete guide ...

  3. A variable modified inside a while loop is not remembered

    May 31, 2013 · When the read command sets the variable to the input, that variable is set only in the subshell, not the parent shell. When the subshell exits, the value of the variable is lost. Many …

  4. What is the naming convention in Python for variables and functions ...

    Coming from a C# background the naming convention for variables and methods are usually either camelCase or PascalCase: // C# example string thisIsMyVariable = "a" public void …

  5. Adding a directory to the PATH environment variable in Windows

    Mar 3, 2012 · I am trying to add C:\\xampp\\php to my system PATH environment variable in Windows. I have already added it using the Environment Variables dialog box. But when I type into my console: …

  6. How do you test if a variable is undefined? - Stack Overflow

    Oct 23, 2025 · How do you test if a variable is undefined? Asked 15 years, 4 months ago Modified 3 months ago Viewed 434k times

  7. MySQL: @variable vs. variable. What's the difference?

    Function variable for which the scope ends when function exits. Package body variables defined at the top of package and outside all functions whose scope is the session and visibility is package.

  8. How can I fix "UnboundLocalError: local variable referenced before ...

    If you set the value of a variable inside the function, python understands it as creating a local variable with that name. This local variable masks the global variable.

  9. cmd - How can I update the PATH variable permanently from the …

    From here you can tell it might be possible to set a variable not only for the currently logged in user but for the machine by using /m at the end of the command, on windows xp and 7. I haven't tried it though.

  10. Why would a JavaScript variable start with a dollar sign?

    The questions wasn't 'Can a JavasScript variable start with a $?', but 'Why would a ...' . thee OP was looking for a reason to use such a naming convention. Protected question. To answer this question, …