About 50 results
Open links in new tab
  1. 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 implementation. Some …

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

    97 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. slice - How slicing in Python works - Stack Overflow

    Python slicing is a computationally fast way to methodically access parts of your data. In my opinion, to be even an intermediate Python programmer, it's one aspect of the language that it is necessary to …

  4. syntax - What do >> and << mean in Python? - Stack Overflow

    Apr 3, 2014 · I notice that I can do things like 2 << 5 to get 64 and 1000 >> 2 to get 250. Also I can use >> in print: print >>obj, "Hello world" What is happening here?

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

    Aug 31, 2008 · Python 2 compatible demos *args (typically said "star-args") and **kwargs (stars can be implied by saying "kwargs", but be explicit with "double-star kwargs") are common idioms of Python …

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

    Jun 16, 2012 · This will always return True and "1" == 1 will always return False, since the types differ. Python is dynamically, but strongly typed, and other statically typed languages would complain about …

  7. operators - Python != operation vs "is not" - Stack Overflow

    In a comment on this question, I saw a statement that recommended using result is not None vs result != None What is the difference? And why might one be recommended over the other?

  8. python - What does the caret (^) operator do? - Stack Overflow

    185 I ran across the caret operator in python today and trying it out, I got the following output: ... It seems to be based on 8, so I'm guessing some sort of byte operation? I can't seem to find much …

  9. python - Is there a difference between "==" and "is"? - Stack Overflow

    In python there is id function that shows a unique constant of an object during its lifetime. This id is using in back-end of Python interpreter to compare two objects using is keyword.

  10. >> operator in Python - Stack Overflow

    Aug 5, 2010 · What does the &gt;&gt; operator do? For example, what does the following operation 10 &gt;&gt; 1 = 5 do?