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.
Buscar
Categorías
- Information Technology
- Office Equipment and Supplies
- Cars and Trucks
- Persons
- Books and Authors
- Tutorials
- Art
- Causes
- Crafts
- Dance
- Drinks
- Film
- Fitness
- Food
- Juegos
- Gardening
- Health
- Home
- Literature
- Music
- Networking
- Other
- Party
- Religion
- Shopping
- Sports
- Theater
- Wellness
Read More
Cycling Clubs and Events Fuel Demand for Branded Hi-Vis Apparel
The global high visibility cycling clothing market is set for significant expansion as safety and...
Global Drinks Market Growth, Demand & Forecast Overview to 2030
Global Drinks Market Research Report – 2025 Outlook, Trends, Share, Size & Forecast...
Stock Market Trading: A Complete Guide to Learning Through a Stock Market Training Academy in India
The stock request has long been a symbol of fiscal occasion, wealth creation, and profitable...
The Fire Log Market
IntroductionThe Fire Log Market is experiencing steady growth due to increasing demand for...
© 2025 Omaada - A global social and professionals networking platform
Spanish
