Avatar ·

Método split em Python

📁 python, exemplo, trabalho

Código:

a = input().split()print(a)

ao inserir a linha '1 2 3'

Traceback (most recent call last): File "", line 1, in <module> a = input().split() File "<string>", line 1 1 2 3 ^ SyntaxError: invalid syntax

Qual poderia ser o problema?