error on user input Follow
Answered
when assigning values to two variables using int(input()) in a row,
an error appears - ValueError: invalid literal for int() with base 10: '',
pointing to an empty character which does not exist (screenshot 1)
i checked the code in online compiler and other IDE, the error is only in pycharm
moreover, if between assigning values to insert any operations, the error disappears (screenshot2)
what is my problem?

Please sign in to leave a comment.
with assignment of values to str is the same, the second variable in a row is ignored (scrnht 1),


but if you add an operation between assignments, everything works fine (scrnht 2)
Hi,
This is a known issue that will be fixed in the next minor update https://youtrack.jetbrains.com/issue/PY-54238/STDIN-is-lost-for-a-second-input-call
As a temporary workaround, you can downgrade to 2021.3.3 https://www.jetbrains.com/pycharm/download/other.html
I'm sorry for the inconvenience.