Python Example | Convert .py to .exe

This python example code shows us how to convert .py file to .exe file

Install pyinstaller

pip install pyinstaller

Convert .py to .exe

pyinstaller --onefile -w hello_word.py

This code will convert hello_word.py to hello_word.exe