Preview:
if *test* : # A test is an expression that is assessed to either True or False. 
	*block of code* # To be carried out if test is assessed to True
else: 
	*block of code* # To be carried out if test is assessed to False

or #Without optional block of code
if *test* :
	*block of code*  
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter