Quick Print – CSKC
Sign In

Search

siteicon
Code Learning #PYTHON#8216 Back

Indentation Concept

We need to indent instructions that fall under if, for, while def etc. Simple instructions in the main body can not be indented, while instructions within some condition, loop, function etc. must be indented. This is done by giving equal space or tabs on the left side of each instruction within a block.

Source Code

		 

Run Output

Indented
Indented