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
Latest North East India News
Latest and Breaking News North East India – Real-Time Updates from Prime24Seven Latest and...
Par Technology Welldone 2025-07-13 09:08:31 0
Autre
耐磨耗ゴム市場規模予測:2031年には837百万米ドルに到達へ
2025年6月6日に、QYResearch株式会社(所在地:東京都中央区)は、「耐磨耗ゴム―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」の最新調査資料を公開しまし...
Par Qyresearch Jasmine1 2025-06-06 06:02:54 0
Autre
Future of the Hybrid Seeds Market (2025–2032): Global Trends and Segment Insights
Hybrid Seeds Market size was valued at US$ 30.37 Billion in 2024 and the total revenue is...
Par Indrakshi Mmr 2025-06-13 11:10:08 0
Jeux
City Kids Afterschool – Educație, grijă și distracție pentru copiii tăi
Educația copiilor este una dintre cele mai mari responsabilități ale părinților. Într-o...
Par Citykids Afteschool 2025-06-26 05:32:04 0
Autre
Hydraulic Fracturing Operations Propel Growth in Global Proppant Market
"Executive Summary Proppant Market : Data Bridge Market Research analyses that the...
Par Rahul Rangwa 2025-06-27 06:30:48 0
Omaada - A global social and professionals networking platform https://www.omaada.com