when I copy-paste your function into Spyder, it runs perfectly fine -
cannot reproduce the error.
(Spyder 4.0.1, Python 3.8.1, on Linux)
Am Freitag, 24. Januar 2020 22:27:04 UTC+1 schrieb Poppa la gnocca:
>
>
> def titolo_w(titolo):
> titol = titolo.split('.')
> titol[1] += '_weight'
> titolo = '.'.join(titol)
> return titolo
> .........and this is the error msg:
> def titolo_w(titolo):
> File "<ipython-input-778-5f591f155d80>", line 1
> def titolo_w(titolo):
> ^
> SyntaxError: unexpected EOF while parsing
>
--
You received this message because you are subscribed to the Google Groups
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/spyderlib/7671bfc4-d8a1-44a7-9e5c-4e8251545bb3%40googlegroups.com.