Multiple Statements

Define Multiple Statement in Single Line

The semicolon ( ; ) allows multiple statements on the single line given that neither statement starts a new code block.

Example
a, b, c = 5, 3.2, "Hello"
print a,b,c; print c,b,a; print a

Result

No comments:

Post a Comment