> 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 _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor