×

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.

Поиск
Категории
Больше
Другое
Fitness Tracker Market Analysis and Growth Opportunities 2025-2034 Forecast
The most recent report published by Vantage Market Research indicates that the "Fitness Tracker...
От Tushar Jane 2025-05-12 05:23:15 0
Другое
Rare Disease Testing Market to Register 9.29% CAGR Through 2026 | Key Drivers and Opportunities
MarkNtel Advisors recently published a detailed industry analysis of the Global Rare Disease...
От Jack Daniel 2025-05-27 10:12:37 0
Другое
Personalize Your Style with Custom Leather Jacket Patches
Make Your Leather Jacket One of a KindLeather jackets are timeless pieces known for their...
От James Oliver 2025-05-26 08:48:18 0
Другое
Pressure Cleaning Maroochydore
Expert Pressure Cleaning Maroochydore – Restore Your Property’s Shine | All Pro...
От Technology Welldone 2025-06-08 09:56:29 0
Shopping
Cool Is Dead. Long Live Cool
Cool Is Dead. Long Live Cool. What once defined “cool” is now cliché.Logomania...
От Hoodiesand Tshirt1122 2025-06-02 10:32:36 0