Feb-11-2017, 10:28 AM
(This post was last modified: Feb-11-2017, 11:25 AM by ichabod801.)
Hi everyone
I have zero programming experience but just began a Python tutorial. The code I am writing is not behaving like in the example that I am trying to follow along with. This is what I am typing in PyCharm:
enter how much you want to save: 100
The second line containing the payment variable does not "show up". If I switch the order of the variables, only the payment variable gets shown.
This is not what happens in the example that I am trying to duplicate. Here, both inputs get shown when the teacher executes them in PyCharm. As far as I can tell, I have written the code exactly like he has.
What am I missing?
I have zero programming experience but just began a Python tutorial. The code I am writing is not behaving like in the example that I am trying to follow along with. This is what I am typing in PyCharm:
balance = input("enter how much you want to save: 100") payment = input("enter how much you will be able to pay: 10")When I run this, only the first line gets executed, as in:
enter how much you want to save: 100
The second line containing the payment variable does not "show up". If I switch the order of the variables, only the payment variable gets shown.
This is not what happens in the example that I am trying to duplicate. Here, both inputs get shown when the teacher executes them in PyCharm. As far as I can tell, I have written the code exactly like he has.
What am I missing?