×

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
Germany Stirling Engines Market Insights, Demand & Forecast 2025
Germany Stirling Engines Market Germany, a global leader in renewable energy adoption and...
Par Reshama Patil 2025-06-02 05:40:04 0
Autre
PEM Water Electrolyzer Market Soars on Clean Energy Transitions
PEM Water Electrolyzer Market is set to be led by North America, driven by rising hydrogen...
Par Lisa Tate 2025-06-02 10:29:46 0
Shopping
Exploring the Sensual World of Pussy Clamps and Pussy Spreaders
In the realm of adult toys, devices designed to enhance pleasure and exploration are always...
Par John Martin 2025-05-21 15:57:13 0