Python Forum

Full Version: Incredibly basic coding problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I'm using a Mac, not windows. I figured out how to upload a screenshot. As you can see, the console only shows the first line of the code (assuming that the "console" is what I think it is):

http://prnt.sc/e7d7p0
Judging from your screen shot you are running multiple instances of your script and not stopping any of them (the red box on the left says the scripts is running, clicking on the red box stops the process). 

This line:
Quote:/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 /Users/andreasfinsen/PycharmProjects/untitled1/second.py

is normal and just indicates what file is being run. 

Putting the '100' and '10' in the input statement has no effect, it merely becomes part of the input string, it is still waiting for user input followed by hitting the ENTER key. 

You output should look like this:

Output:
C:\Python36\python.exe C:/Python/Sound/scratch2.py enter how much you want to save: 100100 enter how much you will be able to pay: 1010 Process finished with exit code 0
We could enter any value (at least those that won't break your code):

Output:
C:\Python36\python.exe C:/Python/Sound/scratch2.py enter how much you want to save: 10055 enter how much you will be able to pay: 10666 Process finished with exit code 0
Thanks sparks_alot, I managed to fix it.
Pages: 1 2