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
Optimizing Profit with Expert Internal Medicine and Mental Health Billing Services
Preface
In today’s evolving healthcare landscape, medical practices are constantly...
Low Voltage Switchgear Market Industry Outlook & Strategic Forecast, 2025
Low Voltage Switchgear Market Demand
The low voltage switchgear market has been experiencing...
Electric Vehicle Recycled Battery Materials Market Surges Amid Sustainability Push and Raw Material Supply Concerns
The Electric Vehicle (EV) Recycled Battery Materials Market is witnessing strong growth...
Energy Storage as a Service Market Rises on Urban Energy Demands
Energy Storage as a Service Market grows with rising renewable use, grid stability needs, and...
Japan Baby Food and Infant Formula Market Scope, Opportunity 2025-2033
Japan Baby Food and Infant Formula Market Overview
Market Statistics
Base Year: 2024
Historical...