vscode-code-runner

Python Input function not Working in VS Code

Python Input function not Working in VS Code Question: balance = 100 print(‘Current Balance: ‘, balance) while balance > 0: print(‘1. WITHDRAW’) print(‘2. DEPOSIT’) choice = input("Select an option… ") if (choice == 1): print(‘1’) elif (choice == 2): print(‘2’) else: print(‘test’) When I run the code with the code runner extension the code shows …

Total answers: 3

Visual Studio Code not running Python

Visual Studio Code not running Python Question: I’m using the newest version of Visual Studio Code and Python 3.6 (64 bit) on Windows 10. I have the "Python" extension installed (the one made by Microsoft). Every time I try to run a simple program [e.g., print("Hello, World!")] it says that "The command "python" wasn’t spelled …

Total answers: 2

VSCode: The term 'python' is not recognized…but py works

VSCode: The term 'python' is not recognized…but py works Question: I just installed python on VS Code and I can’t run any python code using python command. python command: Running the code seems to run python command by default and it does not recognize it. When I right click and choose Run Code it complains: …

Total answers: 10