Code running in PyCharm does not run as it should. Here it is:
crd = [input().split() for _i in range(int(input()))]
print(crd)
The input:
4
1 2
1 2
1 2
1 2
Take a look at the screenshot of the code running in the console:
The output:
[['1', '2'], ['1', '2'], ['1', '2'], ['1', '2']]
And take a look at what happens with this code in PyCharm:
The output (I can't even complete the input):
[[], ['1', '2'], [], ['1', '2']]
I have no idea what is going on here.
P.S. I have already done the following:
- Uninstalled PyCharm and Python.
- Removed all folders related to them (in AppData and so on).
- Downloaded and installed the latest versions of PyCharm and Python.
- Rebooted my laptop.
- Created a completely new project.
But it didn't help.
P.P.S. The option "Emulate terminal in output console" is not enabled: