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

    Mar 21, 2023 · What does the := operand mean, more specifically for Python? Can someone explain how to read this snippet of code? node := root, cost = 0 frontier := priority queue …

  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 …

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

    Jun 16, 2012 · There are two operators in Python for the "not equal" condition - a.) != If values of the two operands are not equal, then the condition becomes true. (a != b) is true.

  4. What is Python's equivalent of && (logical-and) in an if-statement?

    Sep 13, 2023 · There is no bitwise negation in Python (just the bitwise inverse operator ~ - but that is not equivalent to not). See also 6.6. Unary arithmetic and bitwise/binary operations and 6.7. …

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

    Apr 25, 2017 · It's an operator in Python that can mean several things depending on the context. A lot of what follows was already mentioned (or hinted at) in the other answers but I thought it …

  6. 你是如何自学 Python 的? - 知乎

    Crossin:Python 的练手项目有哪些值得推荐? 最好能找到一个已经会python的人。 问他一点 学习规划的建议 (上知乎也是个途径),然后在遇到卡壳的地方找他指点。 这样会事半功倍。 …

  7. What is the result of % (modulo operator / percent sign) in Python?

    What does the % do in a calculation? I can't seem to work out what it does. Does it work out a percent of the calculation for example: 4 % 2 is apparently equal to 0. How?

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

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

  10. mean in Python function definitions? - Stack Overflow

    Jan 17, 2013 · My summary: Simply -> is introduced to get developers to optionally specify the return type of the function. See Python Enhancement Proposal 3107 This is an indication of …