On Tue, 18 Feb 2020 at 20:45, alberto <voodoo.ben...@gmail.com> wrote: > Il giorno martedì 18 febbraio 2020 09:34:51 UTC+1, DL Neil ha scritto:
> > > my code preos in one file preos.py > > > my commands are > > > > > > alberto@HENDRIX ~/PREOS $ python3.5 > > > Python 3.5.2 (default, Oct 8 2019, 13:06:37) > > > [GCC 5.4.0 20160609] on linux > > > Type "help", "copyright", "credits" or "license" for more information. > > >>>> import preos > > >>>> methane = Molecule("methane", -82.59 + 273.15, 45.99, 0.011) > > > Traceback (most recent call last): > > > File "<stdin>", line 1, in <module> > > > NameError: name 'Molecule' is not defined > honestly i don't understand what i have to do. $ python3 Python 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516] on linux Type "help", "copyright", "credits" or "license" for more information. >>> print(digits) Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'digits' is not defined >>> print(string.digits) Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'string' is not defined >>> import string >>> print(digits) Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'digits' is not defined >>> print(string.digits) 0123456789 >>> -- https://mail.python.org/mailman/listinfo/python-list