Python - Search
About 640,000 results
Open links in new tab
    Kizdar net | Kizdar net | Кыздар Нет
  1. python - What does the caret (^) operator do? - Stack Overflow

    Side note, seeing as Python defines this as an xor operation and the method name has "xor" in it, I would consider it a poor design choice to make that method do something not related to xor …

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

    Mar 21, 2023 · 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 …

  3. python - What is the purpose of the -m switch? - Stack Overflow

    Python 2.4 adds the command line switch -m to allow modules to be located using the Python module namespace for execution as scripts. The motivating examples were standard library …

  4. What does the percentage sign mean in Python [duplicate]

    Apr 25, 2017 · What does the percentage sign mean in Python [duplicate] Asked 16 years, 1 month ago Modified 1 year, 8 months ago Viewed 349k times

  5. What is :: (double colon) in Python when subscripting sequences?

    Aug 10, 2010 · I know that I can use something like string[3:4] to get a substring in Python, but what does the 3 mean in somesequence[::3]?

  6. python - SSL: CERTIFICATE_VERIFY_FAILED with Python3

    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 …

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

    Jul 21, 2010 · 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 …

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

  9. python - How do I pad a string with zeros? - Stack Overflow

    Dec 3, 2008 · How do I pad a numeric string with zeroes to the left, so that the string has a specific length?

  10. python - How should I use the Optional type hint? - Stack Overflow

    Python 3.10 introduces the | union operator into type hinting, see PEP 604. Instead of Union[str, int] you can write str | int. In line with other type-hinted languages, the preferred (and more …