** Operator

Sathyaish sathyaish at gmail.com
Mon Mar 20 06:39:06 CET 2006

In the example below from the python docs
(http://docs.python.org/tut/node7.html#SECTION007140000000000000000), I
am not able to understand the ** operator in the following expression:

>>> [(x, x**2) for x in vec]

I understand the list comprehension as a whole but have forgotten the
** operator's use. Can someone please guide me.

More information about the Python-list mailing list