About 13,500,000 results
Open links in new tab
  1. python - Putting a simple if-then-else statement on one line

    How do I write an if-then-else statement in Python so that it fits on one line? For example, I want a one line version of: if count == N: count = 0 else: count = N + 1 In Objective-C, I wo...

  2. Is there official guide for Python 3.x release lifecycle?

    Nov 22, 2016 · 48 I just noticed Python 3.2 was removed from the drop down selector in Python Docs. I have a framework using Python 3.3, so I'd like to know when it'll share the same fate, …

  3. python - Importing modules from parent folder - Stack Overflow

    Apr 3, 2009 · My code adds a file path to sys.path, the Python path list because this allows Python to import modules from that folder. After importing a module in the code, it's a good …

  4. End of support for python 2.7? - Stack Overflow

    Jan 29, 2011 · The Python Developer’s Guide lists the "Status of Python branches" from version 2.6 up to the current version, including their current support status with End-of-life dates.

  5. python - Real-world examples of nested functions - Stack Overflow

    May 23, 2017 · 10 Your question made me curious, so I looked in some real-world code: the Python standard library. I found 67 examples of nested functions. Here are a few, with …

  6. Installation guide for Python 3.7 for Windows 11 - Stack Overflow

    Nov 8, 2023 · 2 If you really must use Python 3.7 (which, as you noted, has reached end-of-life), the most up-to-date version, with security patches, is 3.7.17. Download either of the two files …

  7. python - Find remaining days month week left of your age - Stack …

    Nov 21, 2021 · You can use Python in this. Given an age input in years (no input for months or days), and assuming the life expectancy of 90 years (assume the person will be living only till …

  8. Lifetime of a variable in python - Stack Overflow

    Jul 7, 2012 · Lifetime of a variable in python [duplicate] Asked 13 years, 3 months ago Modified 13 years, 3 months ago Viewed 7k times

  9. Real world use cases of bitwise operators - Stack Overflow

    What are some real world use cases of the following bitwise operators? AND XOR NOT OR Left/Right shift

  10. python - How to print the average, min and max for a specific year …

    Jul 8, 2022 · Zimbabwe,ZWE,2019,61.49 I need to print this, I got the first 2 parts working. What is the year and country that has the lowest life expectancy in the dataset? What is the year and …