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.
Zoeken
Categorieën
- Information Technology
- Office Equipment and Supplies
- Cars and Trucks
- Persons
- Books and Authors
- Tutorials
- Art
- Causes
- Crafts
- Dance
- Drinks
- Film
- Fitness
- Food
- Spellen
- Gardening
- Health
- Home
- Literature
- Music
- Networking
- Other
- Party
- Religion
- Shopping
- Sports
- Theater
- Wellness
Read More
Laser Handschweissgerät: La Soluzione Avanzata per la Saldatura di Precisione
Nel mondo industriale moderno, la tecnologia laser ha rivoluzionato molti processi di...
AI API Market Size, Share and Research Report, 2033
AI APIs enable businesses to incorporate the power of machine learning, natural language...
Watch Free Sports with MethStreams: Your Ultimate Streaming Guide
In the age of digital convenience, streaming has become the go-to method for catching live...
Blood Pressure Cuffs Market Size, Share, Trends & Forecast to (2024-2032) | UnivDatos
According to the UnivDatos, the rise of hypertension cases, increasing adoption of automated...
© 2025 Omaada - A global social and professionals networking platform
Dutch
