Laboratory Exercise Python Syntax And Semantics Error