Here is the code:
s = str(input()) a = int(s[:1])+int(s[2:]) The problem is this: the input will be [digit] + space + [digit] , and it seems that as soon as the input sees the digit it perceives everything as a number, and because of this an error occurs.
How do I specify the type of data that will be entered a specific moment?
This is what error shows:
SyntaxError: unexpected EOF while parsing