I have this Python code:
import re s = "aa67bc54c9" for t, n in re.findall(r"([az]+)([0-9]+)", s)
And I get this error message when I try to run it:
File "<stdin>", line 1 for t, n in re.findall(r"([az]+)([0-9]+)", s) ^ SyntaxError: invalid syntax
How can i solve this? I am new to Python.
edwards
source share