×

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.

Pesquisar
Categorias
Leia Mais
Outro
Expert Guidance of Discretionary Leave to Remain by Immigration Solicitors4me
The UK’s vibrant communities—from London’s cultural mosaic to...
Por Immigration Solicitors 2025-05-11 09:13:56 0
Outro
In-Game Advertising Market Analysis and Outlook Report 2025-2034
The worldwide "In-Game Advertising Market" 2025 Research Report presents a professional and...
Por ASHWINI GOURKHEDE 2025-05-19 06:13:41 0
Outro
Customisable Travel Accessories in singapore
Customisable Travel Accessories in Singapore – Stylish & Practical | GiftAssembly...
Por Business Maker 2025-06-06 10:46:40 0
Outro
Healthcare Predictive Analytics Market Analysis and Growth Opportunities 2025-2034 Forecast
The worldwide "Healthcare Predictive Analytics Market" 2025 Research Report presents a...
Por Tushar Jane 2025-06-11 05:20:07 0
Outro
商業用魚頭加工機の業界動向:製品別・用途別・地域別の詳細分析レポート2025-2031
2025年6月6日に、QYResearch株式会社(所在地:東京都中央区)は「商業用魚頭加工機―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」の最新調査資料を発行し...
Por Qyresearch Jasmine1 2025-06-06 05:56:55 0