About 131,000 results
Open links in new tab
  1. Beginner Python Practice? - Stack Overflow

    Jul 10, 2010 · I learned python from Guido's tutorial, which is a good place to start (a C programmer will feel right at home). python is also a great tool for making models -- physical, math, stochastic, etc. …

  2. python - Why are global variables evil? - Stack Overflow

    Oct 3, 2013 · Why is the global keyword considered bad practice in Python (and programming in general)? Links with more information would also be appreciated.

  3. What are good programming questions to exercise the use of "if ... else ...

    Sep 26, 2015 · What would be a good set of programming exercises that would help Python newbies to learn the use of the "if ... else" construct? I could cook up the following, do you know of any more?

  4. Should I use a main() method in a simple Python script?

    Apr 4, 2011 · I always write a main() function (appropriately named), and put nothing but command-line parsing and a call to main() in the if __name__ == '__main__' block. That's because no matter how …

  5. Newest 'python' Questions - Stack Overflow

    4 days ago · Python is an interpreted, interactive, object-oriented (using classes), dynamic and strongly typed programming language that is used for a wide range of applications.

  6. How can I distribute python programs? - Stack Overflow

    Installing Python + dependencies + the app itself (whether through distutils, etc, or just a zip file) is more involved, especially if the developer isn't able to manually configure the target machine himself and …

  7. Python best practice in terms of logging - Stack Overflow

    Apr 14, 2023 · 44 When using the logging module from python for logging purposes. Is it best-practice to define a logger for each class? Considering some things would be redundant such as file log …

  8. What's the official way of storing settings for Python programs?

    72 Django uses real Python files for settings, Trac uses a .ini file, and some other pieces of software uses XML files to hold this information. Are one of these approaches blessed by Guido and/or the …

  9. Importing modules in Python - best practice - Stack Overflow

    I am new to Python as I want to expand skills that I learned using R. In R I tend to load a bunch of libraries, sometimes resulting in function name conflicts. What is best practice in Python. I h...

  10. Best Practices Python - Where to store API KEYS/TOKENS

    Jul 11, 2019 · I am building a system that uses API tokens and keys to access services, but where is the best place to store them? I want to push the code to GitHub without pushing the tokens. Currently, …