i have made a login in code and this is the error of i get from the code.
in list(input("Nazi","Communsit"))
thats the bit of code "line 7" with this error
login.dm:7:error: missing left-hand argument to in.
login.dm:7:error: missing left-hand argument to in.
can any one help?
ID:261287
Dec 1 2001, 12:19 pm
|
|
In response to Lummox JR
|
|
i am feeling a bit tired but the input is the list so
input(...) in list(...). i have like this in list(input("Nazi,communist")) should it be the other way round? (input in list("Nazi","Communist")) thanks for any help.. |
In response to Super saiyan3
|
|
You apprently didn't read good enough,
input("...")in list("...","....") |
In response to Nadrew
|
|
yeah but input("..")
what? i already have a list of character type what goes in there? the message to user? |
In response to Super saiyan3
|
|
Here's a tip, look up input() in the reference.
|
Aside from misspelling "Communist" (BTW, isn't this choice like comparing the devil and Saddam Hussein?), the problem with the line is exactly what it tells you. The "in" operator should have something to the left of it, like "x in y".
What I suspect you want is "something = input(...) in list(...)". You're still missing that something, though.
Lummox JR