Code retuning invalid character error

The game_map 2d list is returning the error:

File "/home/runner/Test-repl/main.py", line 157

SyntaxError: invalid character ‘🟫’ (U+1F7EB)

This error was never returned before. I did not change the code in the list. There seems to be nothing wrong with the line in question. How do i fix this error or prevent it from occurring again.

https://replit.com/@Gallus17/Test-repl#main.py

[‘:brown_square:’,‘:brown_square:’,‘:question:’,‘:brown_square:’,‘:brown_square:’,‘:brown_square:’,‘:brown_square:’,‘:brown_square:’,‘:brown_square:’,‘:brown_square:’,‘:brown_square:’,‘:brown_square:’,‘:brown_square:’,‘:brown_square:’,‘:brown_square:’,‘:brown_square:’,‘:deciduous_tree:’,‘:deciduous_tree:’,‘:brown_square:’,‘:brown_square:’,‘:brown_square:’,‘:brown_square:’,‘:brown_square:’,‘:brown_square:’,‘:brown_square:’,‘:brown_square:’,‘:brown_square:’,‘:brown_square:’,‘:brown_square:’,‘:brown_square:’,‘:brown_square:’,‘:brown_square:’,‘:brown_square:’,‘:brown_square:’,‘:brown_square:’,‘:deciduous_tree:’,‘:deciduous_tree:’,‘:deciduous_tree:’,‘:deciduous_tree:’,‘:brown_square:’,‘:brown_square:’,‘:brown_square:’,':brown_square:,‘:brown_square:’,‘:brown_square:’,‘:brown_square:’],

You just need to copy/paste another part of your code and insert into the line with the problem.

(Copy the 156 line, and paste into the 157, change manually any character that you need).

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.