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
世界5'-リボヌクレオチド二ナトリウム(E635)産業調査:市場シェア、需要分析、投資報告2025
2025年7月1日、YH Research株式会社(本社:東京都中央区)は、調査レポート「グローバル5'-リボヌクレオチド二ナトリウム(E635)市場のトップ企業ランキングと市場シェア...
Por Zhijun Liu 2025-07-01 05:58:53 0
Shopping
Corteiz T Shirt – The Streetwear King of 2025
Wear a Corteiz T Shirt, show your attitude, and make your mark. This is more than just a piece of...
Por Alexis 12 2025-07-21 09:10:59 0
Shopping
The Philosophy of Being Mad Happy
Mad Happy is extra than only a juxtaposition of emotions—it is a motion, a mind-set, and a...
Por Madhappy Happy 2025-06-21 06:22:02 0
Outro
Rising Cyber Threats Fuel the Growth of the Threat Intelligence Market
"Executive Summary Threat Intelligence Market : CAGR Value The global threat...
Por Dbmrraaj Sinha 2025-07-11 06:52:15 0
Outro
自動車ヘッドライトコーティングの産業動向:市場規模、生産拠点、需要分析2025
2025年7月17日に、QYResearch株式会社(所在地:東京都中央区)は、「自動車ヘッドライトコーティング―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」の調...
Por Zhang Weixuan 2025-07-17 07:23:47 0
Omaada - A global social and professionals networking platform https://www.omaada.com