How Can I resolve EOF Error when reading a line in Python?

590 Views Asked by At

`and error like this:

Traceback (most recent call last):
File "solution.py:", line 3, in
str2 = input()
EOF Error: EOF when reading a line

I tried like this: 1st I recheck like I just change string input to integer input . just for testing that time also facing same error.

like I take input from user a = int(input()) but same thigs happen.

So, pls tell me how can I resolve these problem`

str1 = input()
str2 = input()
str3 = ''
for  I in str1:
    str3 =+I
for j in str2:
    str3 =+j
print(str3)
1

There are 1 best solutions below

3
ahmedzaid aghiles On

you just have to change str3 =+I into str3 +=I and the same way to str3 =+J into str3 +=I