I'm working in PyCharm. I haven't been programming for a few months and when I came back I saw a problem.
There are 2 user-input-taking variables, input is converted to int.
height = int(input())
width = int(input())
(it's literally entire code, there's nothing more)
When I run the program and give the 1st integer value, it's still fine, but the 2nd integer causes the following error:
ValueError: invalid literal for int() with base 10: ''
For some reason, it is "ValueError", though I just give it integer value (see screen at the end) and it seems to indicate that I gave it an empty string which is untrue (again, see the screen - I even marked the values I had given; in this case it was 4 and 5).
If I put some code between the 2 variables, like below, the problem doesn't appear:
height = int(input())
print(height)
width = int(input())
Also note that if it's just one variable, the problem doesn't appear.
And the problem appears only in PyCharm, I did the same in VSCode and everything worked properly. I also reinstalled PyCharm to check if it helps, but it didn't.
I suppose the problem is related to PyCharm, but since hard reinstall (deleting all that Revo Uninstaller found being related to PyCharm) didn't help I have no more ideas...
Visualization: error