×

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.

Căutare
Categorii
Citeste mai mult
Networking
SMS Marketing Dubai Elevate Your Brand with Direct and Effective Communication
In today’s fast-paced digital age, where consumers are constantly bombarded with online...
By RedSpider WebDesign 2025-05-26 13:30:45 0
Alte
Network Slicing Market Analysis and Growth Opportunities 2025-2034 Forecast
The worldwide "Network Slicing Market" 2025 Research Report presents a professional and complete...
By Tushar Jane 2025-05-09 05:21:07 0
Alte
世界のOWSオープンイヤーヘッドフォン市場規模2025-2031:競合状況、需要分析、成長予測
OWSオープンイヤーヘッドフォン世界総市場規模...
By Snow Lin 2025-06-09 09:39:09 0
Alte
樹脂トランスファー成形(RTM)射出機の世界市場レポート:主要企業分析、競争環境、成長戦略2025
2025年6月4日に、QYResearch株式会社(所在地:東京都中央区)は「樹脂トランスファー成形(RTM)射出機―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」...
By Qyresearch Jasmine1 2025-06-04 07:18:57 0