A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-February/061496.html below:

[Python-Dev] (-1)**(1/2)==1?

[Python-Dev] (-1)**(1/2)==1? [Python-Dev] (-1)**(1/2)==1?Michael Walter michael.walter at gmail.com
Mon Feb 20 17:52:26 CET 2006
>>> 1/2
0

>>> (-1) ** (1./2)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ValueError: negative number cannot be raised to a fractional power

Regards,
Michael

On 2/20/06, Jonathan Barbero <jonathan.barbero at gmail.com> wrote:
> Hello!
>   My name is Jonathan, i´m new with Python.
>
>    I try this in the command line:
>
>    >>> (-1)**(1/2)
>     1
>
>    This is wrong, i think it must throw an exception.
>     What do you think?
>
>     Bye.
>         Jonathan.
>
>
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
> http://mail.python.org/mailman/options/python-dev/michael.walter%40gmail.com
>
>
>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4