×

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
Alte
Wireless Access Control Market Research Report 2025-2034 - Industry Insights, Trends & Competitive Outlook
The most recent report published by Vantage Market Research indicates that the "Wireless Access...
By Tushar Jane 2025-05-13 05:14:44 0
Health
How Worm Infections Trigger Chronic Diarrhea
Worm infections are a significant but often overlooked cause of chronic diarrhea, particularly in...
By Ariana Collins 2025-05-31 04:17:20 0
Alte
US Snacks Market: Comprehensive Market Research Report 2030
Overview of the US Snacks Market: Gain data-driven insights into the US Snacks...
By Akio Komatsu 2025-06-10 09:06:44 0
Alte
Prep Refrigerators Market Report, Size, Trends, Segments and Forecast 2032
As per their “Prep Refrigerators Market” report, the global market was valued at USD...
By Univ Datos 2025-06-03 13:56:49 0
Alte
樹脂トランスファー成形(RTM)射出機の世界市場レポート:主要企業分析、競争環境、成長戦略2025
2025年6月4日に、QYResearch株式会社(所在地:東京都中央区)は「樹脂トランスファー成形(RTM)射出機―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」...
By Qyresearch Jasmine1 2025-06-04 07:18:57 0