--Originally published at Start in the world of the #TC101
One conditional can also be nested within another. (It is the same theme of composibility, again!) We could have written the previous example as follows:
if x < y: STATEMENTS_A else: if x > y: STATEMENTS_B else: STATEMENTS_C
Example:
Source: http://www.openbookproject.net/books/bpp4awd/ch04.html