×

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.

Buscar
Categorías
Read More
Other
Join the Premier Data Science Institute in Noida – Get Certified with Live Projects & Job-Oriented Training | Digicrome
Are you looking...
By Digicrome Academy 2025-05-05 06:10:25 0
Other
Cycling Clubs and Events Fuel Demand for Branded Hi-Vis Apparel
The global high visibility cycling clothing market is set for significant expansion as safety and...
By Mayur Gunjal 2025-06-11 08:27:11 0
Food
Global Drinks Market Growth, Demand & Forecast Overview to 2030
Global Drinks Market Research Report – 2025 Outlook, Trends, Share, Size & Forecast...
By Akio Komatsu 2025-06-05 10:31:25 0
Other
Stock Market Trading: A Complete Guide to Learning Through a Stock Market Training Academy in India
The stock request has long been a symbol of fiscal occasion, wealth creation, and profitable...
By Vinay Kumar 2025-06-10 09:19:04 0
Networking
The Fire Log Market
IntroductionThe Fire Log Market is experiencing steady growth due to increasing demand for...
By HARSH Verma 2025-06-08 18:02:35 0