×

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.

Site içinde arama yapın
Kategoriler
Read More
Information Technology
有機肥料検定器市場競争分析:主要企業、ランキング、投資動向2025
2025年5月27日に、QYResearch株式会社(所在地:東京都中央区)は、「有機肥料検定器―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」の調査資料を発行しま...
By Qyresearch Jasmine1 2025-05-27 08:38:47 0
Other
Business Email Compromise Market Analysis and Outlook Report 2025-2034
The most recent report published by Vantage Market Research indicates that the "Business Email...
By Tushar Jane 2025-05-20 05:17:23 0
Other
Blockchain in Manufacturing Market Research Report: Growth, Share, Value, Trends, and Insights
The worldwide "Blockchain in Manufacturing Market" 2025 Research Report presents a professional...
By Tushar Jane 2025-05-14 05:20:43 0
Home
Seasonal Home Maintenance Checklist: What to Do Every Spring and Fall
Keeping your home in top shape isn’t just about appearance—it's about preventing...
By Wooden Street 2025-06-02 12:23:35 0
Other
Higher Chinese Tuition
Effective Higher Chinese Tuition in Singapore | Boost Exam Results with Expert Tutors Struggling...
By Business Maker 2025-06-06 10:53:56 0