I did tell you yesterday in your previous post of this question (How do I get rid of this syntax error in Python 3.8
]) that that code makes no sense.
1. print(input("Choose a tile: "))
2. white = ["y1", "y5", "y9", "d1"]
black = ["z1", "y8", "d2", "f2"]
3. if input[list]:
1. You call the
function to get information from the user, but just print it out, without saving it anywhere.
2. You create two
s of strings: not sure what they are for.
3. You cannot use the
statement like that. The
function posts a message to the terminal and waits for input from the user. Also, the
clause has nothing to compare against.
4. Will print the string
, but I am not sure that is what you want.
I strongly suggest you go to The Python Tutorial — Python 3.7.9 documentation
and learn the language thoroughly.