×

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.

Site içinde arama yapın
Kategoriler
Read More
Crafts
Складчина: купить курсы выгодно и сэкономить деньги
Складчина купить курсы. Складчина - это способ совместной покупки различных курсов и обучающих...
By Worksale Worksale 2025-06-08 10:41:08 0
Fitness
Beschaffungskosten senken – FACURAs Blueprint für strategische Einkaufsoptimierung
Die effiziente Beschaffung indirekter Materialien stellt für viele Unternehmen eine...
By Prathamesh Gavade 2025-05-22 10:30:25 0
Other
塗料用ポリエステル樹脂の世界調査レポート:2031年には562百万米ドルに達する見込み
2025年6月5日に、QYResearch株式会社(所在地:東京都中央区)は、「塗料用ポリエステル樹脂―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」の最新調査資料...
By Qyresearch Jasmine1 2025-06-05 03:24:44 0
Other
Commercial Smart Water Meter market Surges with Smart City Growth
Commercial Smart Water Meter market is growing due to&nbs...
By Lisa Tate 2025-05-21 09:02:05 0
Information Technology
フライドポテトカッター業界レポート:市場動向、機会分析、将来予測2025-2031
2025年5月12日に、QYResearch株式会社(所在地:東京都中央区)は「フライドポテトカッター―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」の最新調査資料...
By Qyresearch Jasmine1 2025-05-12 05:37:26 0