×

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
Health
Optimizing Profit with Expert Internal Medicine and Mental Health Billing Services
Preface In today’s evolving healthcare landscape, medical practices are constantly...
By MEDICOTECHLLC Medical 2025-05-13 13:54:45 0
Other
Low Voltage Switchgear Market Industry Outlook & Strategic Forecast, 2025
Low Voltage Switchgear Market Demand The low voltage switchgear market has been experiencing...
By Reshama Patil 2025-06-03 05:42:58 0
Other
Electric Vehicle Recycled Battery Materials Market Surges Amid Sustainability Push and Raw Material Supply Concerns
The Electric Vehicle (EV) Recycled Battery Materials Market is witnessing strong growth...
By Ananya Birla 2025-05-28 10:03:00 0
Other
Energy Storage as a Service Market Rises on Urban Energy Demands
Energy Storage as a Service Market grows with rising renewable use, grid stability needs, and...
By Lisa Tate 2025-05-23 10:02:14 0
Food
Japan Baby Food and Infant Formula Market Scope, Opportunity 2025-2033
Japan Baby Food and Infant Formula Market Overview Market Statistics Base Year: 2024 Historical...
By Harutoleo Leo 2025-06-09 11:45:34 0