×

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.

Zoeken
Categorieën
Read More
Other
難燃性ポリカーボネートフィルムの最新調査レポート:市場規模、競合環境、成長要因2025
2025年5月30日に、QYResearch株式会社(所在地:東京都中央区)は、「難燃性ポリカーボネートフィルム―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」の調...
By Moni Ka 2025-05-30 09:42:49 0
Other
Asia-Pacific Pumps Market Growth Opportunities & Forecast 2025
Asia-Pacific Pumps Market Analysis:  The Asia-Pacific pumps market demonstrates robust...
By Reshama Patil 2025-06-09 08:46:39 0
Other
Asia-Pacific Biomass Power Market Trends, Growth & Forecast 2025
Asia Pacific Biomass Power Market: The Asia-Pacific Biomass Power Market is experiencing rapid...
By Reshama Patil 2025-06-09 07:38:13 0