04 Python uses Identation to indicate the code block
Сообщение 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.
Поиск
Категории
- Information Technology
- Office Equipment and Supplies
- Cars and Trucks
- Persons
- Books and Authors
- Tutorials
- Art
- Causes
- Crafts
- Dance
- Drinks
- Film
- Fitness
- Food
- Игры
- Gardening
- Health
- Главная
- Literature
- Music
- Networking
- Другое
- Party
- Religion
- Shopping
- Sports
- Theater
- Wellness
Больше
Automotive Oil Filter Market Comprehensive Revenue Analysis: Forecasting Industry Outlook by Fact MR
The global automotive oil filter market reached a valuation of US$ 70.0 Billion, and is...
Asia-Pacific Ductless HVAC System Market Demand, Trends, and Forecast
Asia Pacific Ductless HVAC System Market
The Asia-Pacific region has witnessed a significant...
Transform Your Home with Expert Renovations in Brampton
Home remodeling is one of the most effective ways to enhance comfort, improve functionality, and...
頑丈な昇降三脚の世界市場レポート:主要企業分析、競争環境、成長戦略2025
2025年6月10日に、QYResearch株式会社(所在地:東京都中央区)は「頑丈な昇降三脚―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」の最新調査資料を発行し...
Dual Interface Payment Card Market Share, Size & Growth Forecast by 2034
The most recent report published by Vantage Market Research indicates that the "Dual Interface...
© 2025 Omaada - A global social and professionals networking platform
Russian
