Mega Code Archive

 
Categories / Python / Language Basics
 

Nested if statement

x = 1 if x:     y = 2     if y:         print 'block2'     print 'block1'