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

    PEP 8 is a guideline, not a law. It is an option on top of Python, not part of the official language. If everybody uses the same style, this would be preferred in a bigger company. All my Python …

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

    Apr 22, 2013 · Easier to ask for forgiveness than permission. This common Python coding style assumes the existence of valid keys or attributes and catches exceptions if the assumption …

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

  4. Beginner Python Practice? - Stack Overflow

    Jul 10, 2010 · Welcome to CheckIO – a service that has united all levels of Python developers – from beginners up to the real experts! Here you can learn Python coding, try yourself in solving …

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

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

    P.S: The MISRA coding guidelines advise against using break. for-loop; ... Far from bad practice, Python ...

  7. python - Global variables and coding style recommendations

    Mar 20, 2013 · This question is quite general but it's more for me to understand good coding practices in python... I'd like to define a constant that I can use inside in any function without …

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

    Oct 6, 2009 · #!/usr/bin/env python # -*- coding: utf-8 -*- """Module documentation goes here and here and ... """ Why this is a good one: The first line is for *nix users. It will choose the Python …

  9. Is while (true) with break bad programming practice?

    Apr 10, 2016 · is necessary in some situations. If you do any embedded systems programming (think microcontrollers like PICs, MSP430, and DSP programming) then almost all your code …

  10. What is the proper way to comment functions in Python?

    Dec 14, 2019 · Read about using docstrings in your Python code. As per the Python docstring conventions: The docstring for a function or method should summarize its behavior and …

Refresh