Avatar ·

Split method in Python

📁 python, пример, работа

Code:

  a =  input  (). Split ()   Print  (a)     

when serving 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 a snag?