On Sunday, July 3, 2016 at 6:59:14 PM UTC+12, John Ladasky wrote:
> from math import pi as π
> 
> c = 2 * π * r

    ldo@theon:~> python3
    Python 3.5.1+ (default, Jun 10 2016, 09:03:40) 
    [GCC 5.4.0 20160603] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> from math import pi as π
    >>> 
    >>> c = 2 * π * r
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    NameError: name 'r' is not defined

It wasn’t the “π” it was complaining about...
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to