About 590,000 results
Open links in new tab
  1. Using 'or' in an 'if' statement (Python) - Stack Overflow

    Using 'or' in an 'if' statement (Python) [duplicate] Asked 7 years, 10 months ago Modified 2 months ago Viewed 161k times

  2. python - Iterating over a dictionary using a 'for' loop, getting keys ...

    Mar 16, 2017 · In Python 3, the iteration has to be over an explicit copy of the keys (otherwise it throws a RuntimeError) because my_dict.keys() returns a view of the dictionary keys, so any …

  3. How can I access environment variables in Python?

    How can I get the value of an environment variable in Python?

  4. python - How do I list all files of a directory? - Stack Overflow

    Jul 9, 2010 · How can I list all files of a directory in Python and add them to a list?

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

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

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

  8. python - Extracting extension from filename - Stack Overflow

    Nov 23, 2019 · 12 Extracting extension from filename in Python Python os module splitext () splitext () function splits the file path into a tuple having two values – root and extension.

  9. python - Find the current directory and file's directory - Stack …

    How do I determine: the current directory (where I was in the shell when I ran the Python script), and where the Python file I am executing is?

  10. Newest 'python' Questions - Stack Overflow

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

    • Site icon
      coursera.org
      https://www.coursera.org
      About our ads

      Python Python Crash Course - Python Programming for Network

      SponsoredLearn Python from the Experts at Coursera and Get Started on Your Career in Python.

      24/7 Customer Support · Free 7-Day Trial · Get Ready for a Career · Online Certification

      72% of Coursera participants surveyed reported career benefits – HBR
    • Site icon
      amazon.com
      https://www.amazon.com › kindle-store › books
      About our ads

      python crash course 3rd edition | Official Kindle Store

      SponsoredFind python crash course 3rd edition in Nonfiction Books on Amazon.
    • Site icon
      udemy.com
      https://www.udemy.com
      About our ads

      Python Crash Course

      SponsoredLearn Python online at your own pace. Start today and improve your skills. Join millions of learners from around the world already learning on Udemy.

      Watch In-Demand Courses · Join 69M+ Learners · Advance Your Career · Improve Your Skills