04 Python uses Identation to indicate the code block
Posté 2022-10-08 11:43:19
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
- Information Technology
- Office Equipment and Supplies
- Cars and Trucks
- Persons
- Books and Authors
- Tutorials
- Art
- Causes
- Crafts
- Dance
- Drinks
- Film
- Fitness
- Food
- Jeux
- Gardening
- Health
- Domicile
- Literature
- Music
- Networking
- Autre
- Party
- Religion
- Shopping
- Sports
- Theater
- Wellness
Lire la suite
Latest North East India News
Latest and Breaking News North East India – Real-Time Updates from Prime24Seven
Latest and...
耐磨耗ゴム市場規模予測:2031年には837百万米ドルに到達へ
2025年6月6日に、QYResearch株式会社(所在地:東京都中央区)は、「耐磨耗ゴム―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」の最新調査資料を公開しまし...
Future of the Hybrid Seeds Market (2025–2032): Global Trends and Segment Insights
Hybrid Seeds Market size was valued at US$ 30.37 Billion in 2024 and the total revenue is...
City Kids Afterschool – Educație, grijă și distracție pentru copiii tăi
Educația copiilor este una dintre cele mai mari responsabilități ale părinților. Într-o...
Hydraulic Fracturing Operations Propel Growth in Global Proppant Market
"Executive Summary Proppant Market :
Data Bridge Market Research analyses that the...
© 2025 Omaada - A global social and professionals networking platform
French
