Re: problems with Methods in Python 3.4.2

2017-09-25 Thread MRAB
On 2017-09-25 23:17, claudemirxavie...@gmail.com wrote: Traceback (most recent call last): File "", line 1, in nome = input("Digite seu nome:") File "", line 1, in NameError: name 'rick' is not defined Estou com esse problema alguem me ajuda pfvr It looks like what you would get

Re: problems with Methods in Python 3.4.2

2017-09-25 Thread claudemirxavier49
Traceback (most recent call last): File "", line 1, in nome = input("Digite seu nome:") File "", line 1, in NameError: name 'rick' is not defined >>> Estou com esse problema alguem me ajuda pfvr -- https://mail.python.org/mailman/listinfo/python-list

Re: problems with Methods in Python 3.4.2

2014-12-18 Thread Terry Reedy
On 12/18/2014 12:27 PM, Marcus Lütolf wrote: Learn to use dir to fine valid names. 1)I am trying to do this: >>> dir(_builtins_) I am getting this: Traceback (most recent call last): File "", line 1, in dir(_builtins_) NameError: name '_builtins_' is not defined >>> dir() ['__bui

Re: problems with Methods in Python 3.4.2

2014-12-18 Thread John Gordon
In =?iso-8859-1?Q?Marcus_L=FCtolf?= writes: > >>> dir(_builtins_) > >>> 'TTA',_add_('GGA') > >>>abs._doc_() These errors are due to using single underscores instead of double underscores. I.e. use __builtins__ instead of _builtins_. > >>> -3 .abs() > AttributeError: 'int' object has no attr

Re: problems with Methods in Python 3.4.2

2014-12-18 Thread Gary Herron
On 12/18/2014 09:27 AM, Marcus Lütolf wrote: Hello Dears, 1)I am trying to do this: >>> dir(_builtins_) It's __builtins__ not _builtins_ (double underscores at each end not single underscores) I am getting this: Traceback (most recent call last): File "", line 1, in dir(_builtin

Re: problems with Methods in Python 3.4.2

2014-12-18 Thread André Roberge
On Thursday, 18 December 2014 13:28:33 UTC-4, Marcus Lütolf wrote: > Hello Dears, > 1)I am trying to do this: > > >>> dir(_builtins_) You need two underscore characters on each sides: dir(__builtins__) > > I am getting this: > Traceback (most recent call last): > File "", line 1, in >