×

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
Oil Storage Tank Service Market Growth Opportunities & Forecast 2025
Oil Storage Tank Service Market Oil storage tanks are essential infrastructure components in the...
By Reshama Patil 2025-06-02 06:10:20 0
Health
Simple and Affordable Dental Care for You and Your Family
Going to the dentist shouldn’t be scary or expensive. At Celebrate Dental & Braces, we...
By Anne James 2025-06-03 13:37:45 0
Alte
Azimuth Thrusters Market Analysis by Size, Share, Growth, Trends and Forecast (2024–2032) | UnivDatos
The Asia Pacific region, a burgeoning hub of maritime activity, has seen a significant uptick in...
By Ahasan Ali 2025-06-04 12:41:29 0
Alte
世界の照明スイッチボード市場:競争環境、産業動向、成長予測2025-2031年
QYResearch株式会社(所在地:東京都中央区)は、最新の調査資料「照明スイッチボード―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」を2025年5月14日より...
By Moni Ka 2025-05-14 07:08:54 0
Alte
Top Roofing Service in Southall | Bal Roofing Experts
If you’re looking for a trusted roofing service in Southall, Bal Roofing is your go-to...
By Abu Harera 2025-06-06 07:05:57 0