Why it gives Error # about input([msg][, default][, title][, hidden])

Asked by Nurbergen

name = input("Please enter your name to log in:", "anonymous")

this gives error

here the Error ----------->>
File "C:\Users\41B5~1\AppData\Local\Temp\sikuli-tmp5198704267729147126.py", line 1, in
 name = input("Please enter your name to log in:", "anonymous")
TypeError: input() takes at most 1 argument (2 given)

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

You seem to use an old version of Sikuli.

The above input() command version is only supported with 1.1.0+

Revision history for this message
Nurbergen (87073525266-w) said :
#2

Thanks RaiMan, that solved my question.

Revision history for this message
Nurbergen (87073525266-w) said :
#3

it has alternative way for a # preset input text ????