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.

Search
Categories
Read More
Other
Primary Angle-Closure Glaucoma Market Technological Insights, Global Landscape, Business Outlook, Evolution and Trends
Executive Summary Primary Angle-Closure Glaucoma Market : Data Bridge Market Research...
By Shim Carter 2025-06-18 09:09:31 0
Information Technology
Integrating NFT Marketplaces into Your Binance Clone
The NFT revolution has shown no signs of slowing down. From digital art and music to real estate...
By Mike Sandlas 2025-07-04 06:34:22 0
Other
Navigating Deportations from UK with Immigration Solicitors4me, Your Expert Guide
Hey there, UK resident! Are you or someone you know staring down the barrel of deportations...
By Immigration Solicitors 2025-05-08 16:43:53 0
SEO
マルチウォール・ポリカーボネートパネルの世界市場レポート:主要企業分析、競争環境、成長戦略2025
QYResearch株式会社(所在地:東京都中央区)は、最新の調査資料「マルチウォール・ポリカーボネートパネル―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」を20...
By Qyresearch Jasmine1 2025-06-27 06:55:45 0
Art
Discover the Beauty of Allah in Arabic Calligraphy
Arabic calligraphy is one of the most expressive art forms in the Islamic world. Among its most...
By Navico Ads 2025-06-25 07:21:59 0
Omaada - A global social and professionals networking platform https://www.omaada.com