×

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.

Rechercher
Catégories
Lire la suite
Autre
バイオベースの界面活性剤調査レポート:市場規模、産業分析、最新動向、予測2025-2031
QYResearch株式会社(所在地:東京都中央区)は、最新の調査資料「バイオベースの界面活性剤―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」を2025年6月5日...
Par Xu Shuyun 2025-06-05 05:39:09 0
Information Technology
樹脂シールドインダクター市場競争分析:主要企業、ランキング、投資動向2025
2025年5月27日に、QYResearch株式会社(所在地:東京都中央区)は「樹脂シールドインダクター―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」の最新調査資...
Par Qyresearch Jasmine1 2025-05-27 08:24:24 0
Autre
Reveal Clearer Skin Fast: PUZB's Data-Backed Guide to Using a Blackhead Remover Effectively
Blackheads, a common type of acne, occur when pores become clogged with excess oil, dead skin,...
Par Hanzla Ali 2025-06-10 07:43:50 0
Autre
Enhanced Oil Recovery Market: Advancements in CO₂ Injection and Recovery
Enhanced Oil Recovery Market Demand The demand for Enhanced Oil Recovery (EOR) technologies has...
Par Reshama Patil 2025-06-06 06:32:20 0
Autre
Outsourcing Ecommerce Bookkeeping: When Is the Right Time?
Running an online store involves more than just listing products and fulfilling orders. From...
Par Anu Cpa 2025-06-09 05:23:59 0