Python Functions, Packing, and Unpacking Introduction to Functions Recap of Introduction to Functions

1 Answer

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 65,296 Points

While it is not considered good coding style, the use of a semicolon is not illegal syntax.

Some of the “acceptable” code example shown in the PEP 08 style guide have semicolons. But most of the examples say not to include multiple statements on a single line.

In a teaching situation, I agree that the code should model better a coding style. Perhaps part of the lesson to show that it’s not illegal.