error with input

Javier Madrazo javitum at gmail.com
Wed May 20 11:54:05 BST 2020


Good morning, I'm starting to program in Python, I have this code:

name=input("Insert your name: ")
print("your name is "+name)

But when I run the script (F2) I get the following error.

Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64
bit (AMD64)] en ULTIMATE, Standard
>>> Excepción "unhandled TypeError"
input() takes 2 positional arguments but 3 were given
Archivo:
C:\Python\Python38\Lib\site-packages\eric6\DebugClients\Python\DebugClientBase.py,
Línea: 74


Running it through the console does not give me any error.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/eric/attachments/20200520/6a0cdb22/attachment.htm>


More information about the Eric mailing list