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.

Căutare
Categorii
Citeste mai mult
SEO
ブレージングペースト&パウダー市場調査2025-2031:シェア、産業分析、最新動向、成長機会
2025年6月24日に、QYResearch株式会社(所在地:東京都中央区)は、「ブレージングペースト&パウダー―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」の調...
By Qyresearch Jasmine1 2025-06-24 05:36:08 0
Alte
Gold Coast Van Hire
Affordable Gold Coast Van Hire Services | Reliable Vans for Rent – Trucks4Rent Looking for...
By Technology Welldone 2025-06-24 09:50:09 0
Alte
Pre Inked Stamps
Pre Inked Stamps – Durable, Clear, and Convenient for Every Need Buy High-Quality Pre Inked...
By Technology Welldone 2025-06-24 09:45:51 0
Alte
Alpha Olefin Sulfonates Market Key Segmentation, Growth, Top Key Players and Forecast by 2035
The global alpha olefin sulfonates market is anticipated to reach USD 710.7 million by...
By Naina Deshmukh 2025-07-16 09:41:00 0
Omaada - A global social and professionals networking platform https://www.omaada.com