I created the .exe file from a game I made in Python, but I'm not sure how to make this exe file have an icon because it looks boring and boring. I want to somehow make the icon an image of an asteroid, say, because I made the asteroids of the game. I used cx_freeze to compile it.
Add it to the parameters in the file setup.py:
setup.py
setup( ... options={ "build_exe": { "icon": "path/to/icon.ico" } } )