Unlike most other programming language such as c, java, in which using braces to define block; Python use whitespace and indentation to define block structure.
Example 1:
x = 0;
while(x < 10):
x += 1;
y = x;
print("x = ", x);
print("y = ", y);
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEndpp1NA6E26XmR01X8U6Hd-ju82mnw_zYhZPqc6da9IpmFxNRm3B3G8Yf0iBm-a1SAAflEIk4V_zNVTB_eM6EtgieRR_EWHkNxeH-QdUXm0o0JZiZ-WE-bsBNDEN8krZ78fy_yd9yas/s400/Indentation_01.png)
Example 2:
x = 0;
while(x < 10):
x += 1;
y = x;
print("x = ", x);
print("y = ", y);
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVFKubLd-92SKA_3doXdqSSNQePrEPly2BtnpDrRsHr0RyIibG_nqx9JtaaF1iuPfFtJjEPup-hiwiOiLLcOBdIuFaQ3mBHFlU-Tp8cYlQEwYgMeBvraj_uHEUJtmCrZqYUNhJQ5F_9dw/s400/Indentation_02.png)
IDLE, the default IDE of Python, automatically indents lines for you.