Split method in Python
📁 Advanced Python Topics, example, work
Code:
a = input (). Split () Print (a) when entering the line '1 2 3'
Traceback (Most Recent Call Last): File "" "" , Line 1 , in & lt; module & gt; a = input (). Split () File , line 1 1 2 3 ^ syntaxerror: invalid syntax . What could be the issue?