I have written a python program which gets an input from user then runs a code and returns values, it is being saved as .py extension. 
I want to run it on different PC which doesn't have python. Is there a way to save it or compile it to .exe?
Note: I am used to writing C programs which are directly compiled (code blocks) and gives .exe
Pip install PyInstaller and then in the command prompt do PyInstaller yourscript.py > nameofprogramyouwant.exe
Python program to run on PC