Single Line & Suites

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

import sys; x = 'foo'; sys.stdout.write(x + '\n')

Group of individual statements, inside if, else, class etc is called suite as below. Suites may be one or more lines

if expression :    
elif expression : 

We  will provide more information on if, else, class in next upcoming topics

Leave a Reply