×

To install this app on your iPhone, tap Share 🔗 then Add to Home Screen.

04 Python uses Identation to indicate the code block

0
57

The spaces at the beginning of a code line is called as Identation.

In other Programming languages Identation or Spaces in the beginning of the code if just for readability but In Python it makes difference. The indentation in Python is very important. Python uses indentation to indicate a block of code.

For Example:

if 5 > 2:
  print("Five is greater than two!")

In above example when you make identation before print statement after IF statement, it is considered as the code block for IF statement.

and

if 5 > 2:
print("Five is greater than two!")

the above code will give you syntax error.

Pesquisar
Categorias
Leia Mais
Outro
Key Players and Competitive Landscape in the Second-hand Products Market
The global second-hand products market is witnessing a transformation, emerging as a dynamic and...
Por Mayur Gunjal 2025-06-06 06:07:37 0
Outro
limousine cars
Experience Luxury Like Never Before with Satoshi Concierge: Film Shoots, Yachts, Mansions &...
Por Irfan Ali 2025-05-19 08:33:44 0
Outro
Loyalty Management Market Size, Share & Trend Analysis 2025-2034
The most recent report published by Vantage Market Research indicates that the "Loyalty...
Por Tushar Jane 2025-05-19 05:16:50 0