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


Groups > comp.lang.python > #81414

Re: "**" in python

References <20141123184316.77485a91@bigbox.christie.dr> <20141124010003.GA44963@cskk.homeip.net>
Date 2014-11-23 17:35 -0800
Subject Re: "**" in python
From Dan Stromberg <drsalists@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.16216.1416792954.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Sun, Nov 23, 2014 at 5:00 PM, Cameron Simpson <cs@zip.com.au> wrote:
> 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.

You can also learn this with Google, by searching for:
     python "star star"

It takes you to a stackoverflow page about python exponentiation.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: "**" in python Dan Stromberg <drsalists@gmail.com> - 2014-11-23 17:35 -0800

csiph-web