About 555,000 results
Open links in new tab
  1. What does colon equal (:=) in Python mean? - Stack Overflow

    In Python this is simply =. To translate this pseudocode into Python you would need to know the data structures being referenced, and a bit more of the algorithm implementation. Some notes about …

  2. What does the "at" (@) symbol do in Python? - Stack Overflow

    96 What does the “at” (@) symbol do in Python? @ symbol is a syntactic sugar python provides to utilize decorator, to paraphrase the question, It's exactly about what does decorator do in Python? Put it …

  3. Is there a "not equal" operator in Python? - Stack Overflow

    Jun 16, 2012 · There's the != (not equal) operator that returns True when two values differ, though be careful with the types because "1" != 1. This will always return True and "1" == 1 will always return …

  4. 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 162k times

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

    Mar 16, 2017 · Why is it 'better' to use my_dict.keys() over iterating directly over the dictionary? Iteration over a dictionary is clearly documented as yielding keys. It appears you had Python 2 in mind when …

  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. What does [:-1] mean/do in python? - Stack Overflow

    Mar 20, 2013 · Working on a python assignment and was curious as to what [:-1] means in the context of the following code: instructions = f.readline()[:-1] Have searched on here on S.O. and on Google …

  8. python - Why do some functions have underscores "__" before and …

    May 24, 2024 · In Python, the use of an underscore in a function name indicates that the function is intended for internal use and should not be called directly by users. It is a convention used to indicate …

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

    Jul 9, 2010 · In Python 3, generator is the default behavior Not sure if returning a list is still mandatory (or a generator would do as well), but passing a generator to the list constructor, will create a list out …

  10. python - What does ** (double star/asterisk) and * (star/asterisk) do ...

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

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

      Top Python Automation Courses - Learn Python Automation Online

      SponsoredBuild your Career in Data Science, Web Development, Marketing & More. Flexible, Online Learning at Your Own Pace. Invest 2-3 Hours A Week & Advance Your Career

      275+ University Partners · Learn on any device · Achieve Your Goals · 24/7 Customer Support

      Courses: Data Science, Business, Computer Science, Personal Development
    • Site icon
      amazon.com
      https://www.amazon.com › books › computers
      About our ads

      automate boring stuff with python | Amazon Official Site

      SponsoredBrowse & Discover Thousands of Computers & Internet Book Titles, for Less.

      Shop Best Sellers · Deals of the Day · Read Ratings & Reviews · Fast Shipping