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
Больше
Fitness Tracker Market Analysis and Growth Opportunities 2025-2034 Forecast
The most recent report published by Vantage Market Research indicates that the "Fitness Tracker...
Rare Disease Testing Market to Register 9.29% CAGR Through 2026 | Key Drivers and Opportunities
MarkNtel Advisors recently published a detailed industry analysis of the Global Rare Disease...
Personalize Your Style with Custom Leather Jacket Patches
Make Your Leather Jacket One of a KindLeather jackets are timeless pieces known for their...
Pressure Cleaning Maroochydore
Expert Pressure Cleaning Maroochydore – Restore Your Property’s Shine | All Pro...
Cool Is Dead. Long Live Cool
Cool Is Dead. Long Live Cool.
What once defined “cool” is now cliché.Logomania...
© 2025 Omaada - A global social and professionals networking platform
Russian
