[Tutor] Dictionary Issue
danny.yoo at gmail.com
Thu Aug 6 00:29:22 CEST 2015
> However, there is a traceback message:
> In : %run 9_4_4.py
> File "C:\Users\vm\Desktop\apps\docs\Python\_9_4_4.py", line 19
> count = dict()
> SyntaxError: invalid syntax
Syntax error reporting is approximate: you might need to look a few lines
earlier to get at the root problem.
The for loop looks odd because there's a leading open bracket that looks
out of place.
for addr in [ text.split()('From ')
The following line uses an if conditional, but needs to offset the block
with a ":" that appears to be missing.
More information about the Tutor