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.

Suche
Kategorien
Mehr lesen
Andere
Copper Fungicides Market Growth Accelerated by Sustainable Farming Practices
Copper Fungicides Market is set to grow due to rising fungal outbreaks and increasing...
Von Lisa Tate 2025-05-22 09:35:47 0
Andere
Anime Market Research Report 2025-2034 - Industry Insights, Trends & Competitive Outlook
The most recent report published by Vantage Market Research indicates that the "Anime Market" is...
Von Tushar Jane 2025-05-21 05:15:48 0
Information Technology
What Are the Top Tools That Complement Selenium Testing?
Introduction Selenium has long been a favorite for automating web application testing. It's...
Von Stella Caroline 2025-06-27 06:11:00 0
SEO
藻類クリーナー市場競争分析:主要企業、ランキング、投資動向2025
2025年7月3日に、QYResearch株式会社(所在地:東京都中央区)は「藻類クリーナー―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」の最新調査資料を発行しま...
Von Qyresearch Jasmine1 2025-07-03 03:00:31 0
Andere
Fixing with Precision: Composite Repair Market Trends in the U.S.
"Executive Summary U.S. Composite Repair Market :   The U.S. Composite Repair...
Von Dbmrraaj Sinha 2025-06-27 05:02:57 0
Omaada - A global social and professionals networking platform https://www.omaada.com