I have learned c and c++, and I am trying to learn python these days...but I have ran into a problem I just can't understand...
a,b = input().split()
print(a)
print(b)
if I execute this short code, "SyntaxError: unexpected EOF while parsing" this is the error message I get...I have looked for the questions with the same error message, but it didn't solve my problem...
in order to understand the problem, I've tried various things, and I figured something which I find kinda weird...
a = input()
print(a)
if I execute this code, it works well when I input a integer value, but when I input a string, "SyntaxError: invalid syntax" this kind of error message appears...
am I doing sth wrong? or is there sth that I don't know that makes this code look flawless to me when this is indeed wrong?