An
if
statement must be terminated by a colon (
:
), and the following lines must be indented, thus:
if input[list]:
print("white")
if input[list2]:
print("black!"
However, that code makes no sense, see
Built-in Functions — Python 3.7.9 documentation[
^].
[edit]
corrected text above. : is a colon.
[/edit]