×

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
AI API Market Size, Share and Research Report, 2033
AI APIs enable businesses to incorporate the power of machine learning, natural language...
Par Mohit Joshi 2025-05-14 10:46:00 0
Autre
UAE Outsourced Facility Management Market on Track for 11% CAGR Growth | Demand & Technological Trends
MarkNtel Advisors recently published a detailed industry analysis of the UAE Outsourced...
Par Jack Daniel 2025-06-02 12:40:18 0
Autre
Fire Safety Equipment Market Unveiling Driving Factors, Strategies, and Forecasted Trends by Fact MR
The global fire safety equipment market is expected to reach USD 133.4 billion by 2035,...
Par Akshay Gorde 2025-06-02 16:59:57 0
Domicile
Top Exterior Painting Color Trends for 2025
A fresh coat of exterior paint does more than just enhance your home’s curb appeal—it...
Par Jason Watsom 2025-06-09 11:26:52 0