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
Больше
Where the Rubber Meets the Road: How the Two-Wheeler Tires Market Is Gearing Up for the Next Ride
It’s early morning in Mumbai. As the city stirs, hundreds of thousands of scooters and...
水性接着剤市場調査レポート:主要企業、競合分析、成長動向2025-2031
QYResearch株式会社(所在地:東京都中央区)は、最新の調査資料「水性接着剤―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」を2025年6月4日より発行しまし...
India Cement Market to Soar at 5.1% CAGR Through 2030 | Trends, Drivers, and Forecast Analysis
MarkNtel Advisors recently published a detailed industry analysis of the India Cement...
© 2025 Omaada - A global social and professionals networking platform
Russian
