[Solved] NameError: name ‘ ‘ is not defined in powershell of python file


If you want to run a python script, you should call the python executable and pass the script path as argument. Type this in the powershell:

(assuming the powershell points to the same directory as shakil.py, otherwise you should either use cd command to go to the script directory, or use relative path like ..\some_other_dir\shakil.py)

python shakil.py

0

solved NameError: name ‘ ‘ is not defined in powershell of python file