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
Digital Pathology Market Research, Review, Applications and Forecast to 2025
The worldwide "Digital Pathology Market" 2025 Research Report presents a professional and...
Por Tushar Jane 2025-05-29 05:23:06 0
Outro
世界の地震用ボート企業分析:売上高、ランキング、市場競争力評価2025-2031
2025年7月24日、YH Research株式会社(本社:東京都中央区)は、調査レポート「グローバル地震用ボート市場のトップ企業ランキングと市場シェア...
Por Zhijun Liu 2025-07-24 02:55:03 0
Outro
Flooring Installation Adhesive Market: Trends, Opportunities, and Growth Drivers
The flooring installation adhesive market plays a vital role in the construction and...
Por Harshal Juvale 2025-06-17 06:22:29 0
Outro
Electronic Soap Dispenser Market Demand: Growth, Share, Value, Size, and Insights
"Executive Summary Electronic Soap Dispenser Market :  The electronic soap...
Por Shweta Kadam 2025-07-01 06:18:16 0
Outro
Residential Air Purifier Market Size, Share, Growth, Analysis, Trends and Forecast 2032
The worldwide residential air purifier market reached a valuation of US$ 3.8 billion in...
Por Naina Deshmukh 2025-07-16 09:47:33 0
Omaada - A global social and professionals networking platform https://www.omaada.com