About 677,000 results
Open links in new tab
  1. What does the "at" (@) symbol do in Python? - Stack Overflow

    What does the @ symbol do in Python?What's the syntactic or practical benefit of having decorators here, instead of (for example) just calling something like app.route("/", hello) …

  2. What does colon equal (:=) in Python mean? - Stack Overflow

    What does the := operand mean, more specifically for Python? Can someone explain how to read this snippet of code? node := root, cost = 0 frontier := priority queue containing node only …

  3. python - Why do some functions have underscores - Stack Overflow

    May 24, 2024 · This "underscoring" seems to occur a lot, and I was wondering if this was a requirement in the Python language, or merely a matter of convention? Also, could someone …

  4. Does Python have a ternary conditional operator?

    Dec 27, 2008 · 214 From the documentation: Conditional expressions (sometimes called a “ternary operator”) have the lowest priority of all Python operations. The expression x if C else …

  5. python - What does ** (double star/asterisk) and * (star/asterisk) …

    Aug 31, 2008 · See What do ** (double star/asterisk) and * (star/asterisk) mean in a function call? for the complementary question about arguments.

  6. python - Importing files from different folder - Stack Overflow

    I have this folder structure: application ├── app │ └── folder │ └── file.py └── app2 └── some_folder └── some_file.py How can I import a function from file.py, from within som...

  7. python - SSL: CERTIFICATE_VERIFY_FAILED with Python3 - Stack …

    Sep 2, 2017 · Go to the folder where Python is installed, e.g., in my case (Mac OS) it is installed in the Applications folder with the folder name 'Python 3.6'. Now double click on 'Install …

  8. python - Iterating over dictionaries using 'for' loops - Stack Overflow

    Jul 21, 2010 · As we know that in Python Dictionary as a set of key: value pairs, with the requirement that the keys are unique (within one dictionary). A pair of braces creates an empty …

  9. How can I find where Python is installed on Windows?

    Mar 15, 2009 · I want to find out my Python installation path on Windows. For example: C:\\Python25 How can I find where Python is installed?

  10. python - How can I add new keys to a dictionary? - Stack Overflow

    How do I add a new key to an existing dictionary? It doesn't have an .add () method.