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.

Buscar
Categorías
Read More
Food
Natural Seafood Segment to Lead Market as Global Seafood Industry Hits USD 149B by 2034
The global seafood market is witnessing a steady growth trajectory, driven by increased consumer...
By Vyankatesh Totala 2025-07-23 11:34:07 0
Home
2025 HVAC Replacement and Installation Cost Guide
  If you're a homeowner planning to replace or install a new residential HVAC system,...
By Jason Watsom 2025-06-13 08:12:29 0
Shopping
Essentials Hoodie That Shows Up
When life calls for presence, you show up. So should your hoodie. The Essentials Hoodie That...
By Hoodiesand Tshirt1122 2025-06-25 14:05:38 0
Other
単純な断面プロファイルの最新調査レポート:市場規模、競合環境、成長要因2025
QYResearch株式会社(所在地:東京都中央区)は、最新の調査資料「単純な断面プロファイル―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」を2025年7月9日よ...
By Zhang Weixuan 2025-07-09 08:40:00 0
Other
複合耐磨耗ライニング市場、2025年に198百万米ドル、2031年に238百万米ドル到達へ
2025年6月6日に、QYResearch株式会社(所在地:東京都中央区)は、「複合耐磨耗ライニング―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」の最新調査資料を...
By Qyresearch Jasmine1 2025-06-06 05:53:26 0
Omaada - A global social and professionals networking platform https://www.omaada.com