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
Other
Business-to-Consumer (B2C) E-commerce Market Analysis and Growth Opportunities 2025-2034 Forecast
The worldwide "Business-to-Consumer (B2C) E-commerce Market" 2025 Research Report presents a...
By ASHWINI GOURKHEDE 2025-05-27 05:30:37 0
Other
Waxy Maize Starch Market – Dynamics: Reach, Worth, Emerging Patterns, Projections, and Sector Analysis
Executive Summary Waxy Maize Starch Market : Data Bridge Market Research analyzes that...
By Tejas Patil 2025-06-18 05:44:43 0
Other
Citric Acid Market Size, Share, Trends, Opportunities, Key Drivers and Growth Prospectus
"Executive Summary Citric Acid Market :  The global citric acid market size was...
By Omii Omii 2025-07-07 05:29:13 0
Other
Understanding the Mechanical Properties of 4130 Tubing for Structural Use
Engineering decisions carry real weight. When structures fail, people get hurt. Equipment breaks...
By Amara Walker 2025-06-12 06:59:12 0
Other
Turkey Artificial Intelligence Market Flourishes with Strong Growth in Tech Startups and Government AI Plans
Executive Summary Turkey Artificial Intelligence Market : CAGR Value Data Bridge Market...
By Ksh Dbmr 2025-07-10 05:36:12 0
Omaada - A global social and professionals networking platform https://www.omaada.com