About 50 results
Open links in new tab
  1. What is the naming convention in Python for variables and functions ...

    4 The coding style is usually part of an organization's internal policy/convention standards, but I think in general, the all_lower_case_underscore_separator style (also called snake_case) is most common …

  2. coding style - Importing modules in Python - best practice - Stack …

    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...

  3. What is the common header format of Python files?

    Oct 6, 2009 · Is this the standard format of headers in the Python world? What other fields/information can I put in the header? Python gurus share your guidelines for good Python source headers :-)

  4. coding style - How many lines of code should a function/procedure ...

    As Steve Mcconnell and Bob Martin say (two pretty good references on coding best practices), a method should do one thing and only one thing. However many lines of code it takes to do that one thing is …

  5. Is it a bad practice to use break in a for loop? - Stack Overflow

    Is this a bad practice? I have seen the alternative used: define a variable vFound and set it to true when the value is found and check vFound in the for statement condition. But is it necessary to create a …

  6. python - Global variables and coding style recommendations - Stack …

    Mar 20, 2013 · Global variables and coding style recommendations Asked 13 years, 1 month ago Modified 13 years, 1 month ago Viewed 45k times

  7. Is it a good practice to use try-except-else in Python?

    Apr 22, 2013 · What is the reason for the try-except-else to exist? I do not like that kind of programming, as it is using exceptions to perform flow control. However, if it is included in the language, there must …

  8. I'm a beginner in data science feeling lost with Python - how should I ...

    Nov 12, 2025 · I'm very new to data science and have just started learning Python. I come from a non-programming background, and I'm finding it quite challenging to understand how to properly practice …

  9. python - Is nested function a good approach when required by only …

    Jan 29, 2011 · 5 It's just a principle about exposure APIs. Using python, It's a good idea to avoid exposure API in outer space (module or class), function is a good encapsulation place. It could be a …

  10. Best online resource to learn Python? - Stack Overflow

    Mar 8, 2012 · Google's Python Class Welcome to Google's Python Class -- this is a free class for people with a little bit of programming experience who want to learn Python. The class includes written …