×

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.

Search
Categories
Read More
Art
Custom Block Print Stamps by RR Printing Tools
In an era dominated by uniformity and mass production, the appeal of handcrafted and...
By Ema Hossain 2025-05-15 16:09:41 0
Other
Kitchen Knives Market Pricing Trends
The global kitchen knives market is undergoing a dynamic transformation, spurred by evolving...
By Mayur Gunjal 2025-06-09 05:50:30 0
Shopping
Travis Scott Merch That Will Turn Heads
In a world where style is as much about identity as it is about fashion, Travis Scott merch...
By Hoodiesand Tshirt1122 2025-06-03 06:43:31 0
Other
コネクティングロッドベース業界分析レポート2025-2031:市場規模、産業調査、最新動向、成長機会
QYResearch株式会社(所在地:東京都中央区)は、最新の調査資料「コネクティングロッドベース―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」を2025年6月6...
By Xu Shuyun 2025-06-06 07:22:04 0
Other
Amphibious Excavators vs. Traditional Excavators: Which One to Choose?
Construction and dredging in waterlogged areas present a unique set of challenges, where...
By Shubham Gurav 2025-06-10 05:07:30 0