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
Wireless Access Control Market Research Report 2025-2034 - Industry Insights, Trends & Competitive Outlook
The most recent report published by Vantage Market Research indicates that the "Wireless Access...
How Worm Infections Trigger Chronic Diarrhea
Worm infections are a significant but often overlooked cause of chronic diarrhea, particularly in...
US Snacks Market: Comprehensive Market Research Report 2030
Overview of the US Snacks Market:
Gain data-driven insights into the US Snacks...
Prep Refrigerators Market Report, Size, Trends, Segments and Forecast 2032
As per their “Prep Refrigerators Market” report, the global market was valued at USD...
樹脂トランスファー成形(RTM)射出機の世界市場レポート:主要企業分析、競争環境、成長戦略2025
2025年6月4日に、QYResearch株式会社(所在地:東京都中央区)は「樹脂トランスファー成形(RTM)射出機―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」...
© 2025 Omaada - A global social and professionals networking platform
Romaian
