problems with Methods in Python 3.4.2

MRAB python at mrabarnett.plus.com
Mon Sep 25 20:03:57 EDT 2017


On 2017-09-25 23:17, claudemirxavier49 at gmail.com wrote:
> Traceback (most recent call last):
>    File "<pyshell#12>", line 1, in <module>
>      nome = input("Digite seu nome:")
>    File "<string>", line 1, in <module>
> NameError: name 'rick' is not defined
>>>> 
> Estou com esse problema alguem me ajuda pfvr
> 
It looks like what you would get in Python 2.

If you're using Python 2, use 'raw_input' instead of 'input'.



More information about the Python-list mailing list