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.
Site içinde arama yapın
Kategoriler
- Information Technology
- Office Equipment and Supplies
- Cars and Trucks
- Persons
- Books and Authors
- Tutorials
- Art
- Causes
- Crafts
- Dance
- Drinks
- Film
- Fitness
- Food
- Oyunlar
- Gardening
- Health
- Home
- Literature
- Music
- Networking
- Other
- Party
- Religion
- Shopping
- Sports
- Theater
- Wellness
Read More
Business-to-Consumer (B2C) E-commerce Market Analysis and Growth Opportunities 2025-2034 Forecast
The worldwide "Business-to-Consumer (B2C) E-commerce Market" 2025 Research Report presents a...
Waxy Maize Starch Market – Dynamics: Reach, Worth, Emerging Patterns, Projections, and Sector Analysis
Executive Summary Waxy Maize Starch Market :
Data Bridge Market Research analyzes that...
Citric Acid Market Size, Share, Trends, Opportunities, Key Drivers and Growth Prospectus
"Executive Summary Citric Acid Market :
The global citric acid market size was...
Understanding the Mechanical Properties of 4130 Tubing for Structural Use
Engineering decisions carry real weight. When structures fail, people get hurt. Equipment breaks...
Turkey Artificial Intelligence Market Flourishes with Strong Growth in Tech Startups and Government AI Plans
Executive Summary Turkey Artificial Intelligence Market :
CAGR Value
Data Bridge Market...