×

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
SEO
プラチナ分析対象るつぼの世界市場規模:全体売上と需要分析予測2025~2031
2025年6月10日に、QYResearch株式会社(所在地:東京都中央区)は「プラチナ分析対象るつぼ―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」の最新調査資料...
Por Qyresearch Jasmine1 2025-06-10 07:06:40 0
Outro
Power-to-Gas Market Demand, Trends, and Forecast 2025
Power-to-Gas Market Overview: Power-to-gas is a promising technology that can help to store...
Por Reshama Patil 2025-06-10 06:42:56 0
Outro
India Green Hydrogen Market Analysis: Production, Demand & Policy Drivers
India Green Hydrogen Market India is rapidly emerging as a pivotal player in the global green...
Por Reshama Patil 2025-06-09 08:57:58 0
Health
Simple Enhancements for a Radiant, Timeless Appearance in Carlisle
In a world increasingly focused on health and confidence, many people are seeking gentle,...
Por Lip Fillers 2025-06-06 14:27:21 0
Outro
携帯電話用半導体の最新調査レポート:市場規模、競合環境、成長要因2025
QYResearch株式会社(所在地:東京都中央区)は、最新の調査資料「携帯電話用半導体―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」を2025年5月20日より発...
Por Moni Ka 2025-05-20 07:15:34 0