Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #81410 > unrolled thread

Re: "**" in python

Started byCameron Simpson <cs@zip.com.au>
First post2014-11-24 12:00 +1100
Last post2014-11-24 12:00 +1100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: "**" in python Cameron Simpson <cs@zip.com.au> - 2014-11-24 12:00 +1100

#81410 — Re: "**" in python

FromCameron Simpson <cs@zip.com.au>
Date2014-11-24 12:00 +1100
SubjectRe: "**" in python
Message-ID<mailman.16213.1416792102.18130.python-list@python.org>
On 23Nov2014 18:43, Tim Chase <python.list@tim.thechases.com> wrote:
>On 2014-11-24 01:33, Abdul Abdul wrote:
>> Wxy**2
>>
>> What do ** mean here?
>
>"to the power of", so your code squares the value of "Wxy", or "Wxy *
>Wxy"
>
>https://docs.python.org/2/reference/expressions.html#the-power-operator

With respect to finding this out for yourself, if you go the Python docs:

  https://docs.python.org/3/

and follow the "index" link at the top right:

  https://docs.python.org/3/genindex.html

and in that page, follow the "Symbols" link:

  https://docs.python.org/3/genindex-Symbols.html

you will find "**" there, along with a lot of other operator and syntax stuff.

Cheers,
Cameron Simpson <cs@zip.com.au>

Swiftkey, [...] teaches one the lamentable lesson that most
English speakers start most sentences, phrases and sub-clauses
with 'I'. One does not use the word often oneself and it therefore
strikes one as a little unfair that one's texts and emails so often
end up littered with implications of egocentricity. - Stephen Fry
http://www.stephenfry.com/2012/04/03/four-and-half-years-on/9/

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web