×

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.

Rechercher
Catégories
Lire la suite
Autre
Top Roofing Service in Southall | Bal Roofing Experts
If you’re looking for a trusted roofing service in Southall, Bal Roofing is your go-to...
Par Abu Harera 2025-06-06 07:05:57 0
Autre
ポケットホールアセンブリクランプ市場競争分析:主要企業、ランキング、投資動向2025
2025年6月9日に、QYResearch株式会社(所在地:東京都中央区)は「ポケットホールアセンブリクランプ―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」の最新...
Par Qyresearch Jasmine1 2025-06-09 09:17:08 0
Autre
Epigenetics Diagnostics Market Analysis by Size, Share, Growth, Trends and Forecast (2025–2033) | UnivDatos
 According to the UnivDatos analysis, increasing prevalence of cancer and chronic diseases,...
Par Ahasan Ali 2025-06-11 10:20:21 0
Information Technology
メタサーフェス光学製品市場の産業チェーン分析:供給、コスト構造、価格変動2025
QYResearch株式会社(所在地:東京都中央区)は、最新の調査資料「メタサーフェス光学製品―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」を2025年5月15日...
Par Qyresearch Jasmine1 2025-05-15 07:00:19 0
Autre
North America Automotive Lead Acid Battery Market Fueled by EV Growth
North America Automotive Lead Acid Battery Market grows due to rising demand for cost-effective,...
Par Lisa Tate 2025-06-03 11:43:55 0