[Tutor] Dictionary Issue

Danny Yoo danny.yoo at gmail.com
Thu Aug 6 00:29:22 CEST 2015

> However, there is a traceback message:
> In [40]: %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.

... Reading...

The for loop looks odd because there's a leading open bracket that looks
out of place.

    for addr in [ text.split()[2]('From  ')

The following line uses an if conditional, but needs to offset the block
with a ":" that appears to be missing.

    if fromline

More information about the Tutor mailing list