04 Python uses Identation to indicate the code block
Posted 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.
Căutare
Categorii
- Information Technology
- Office Equipment and Supplies
- Cars and Trucks
- Persons
- Books and Authors
- Tutorials
- Art
- Causes
- Crafts
- Dance
- Drinks
- Film
- Fitness
- Food
- Jocuri
- Gardening
- Health
- Home
- Literature
- Music
- Networking
- Alte
- Party
- Religion
- Shopping
- Sports
- Theater
- Wellness
Citeste mai mult
SMS Marketing Dubai Elevate Your Brand with Direct and Effective Communication
In today’s fast-paced digital age, where consumers are constantly bombarded with online...
Network Slicing Market Analysis and Growth Opportunities 2025-2034 Forecast
The worldwide "Network Slicing Market" 2025 Research Report presents a professional and complete...
世界のOWSオープンイヤーヘッドフォン市場規模2025-2031:競合状況、需要分析、成長予測
OWSオープンイヤーヘッドフォン世界総市場規模...
樹脂トランスファー成形(RTM)射出機の世界市場レポート:主要企業分析、競争環境、成長戦略2025
2025年6月4日に、QYResearch株式会社(所在地:東京都中央区)は「樹脂トランスファー成形(RTM)射出機―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」...
© 2025 Omaada - A global social and professionals networking platform
Romaian
