What do we use to define a block of code in Python language?
- { } Brackets
- semicolon
- Indentation
- None of these
Answer:
Option c: Indentation
Unlike languages like C, C++, or Java that use curly braces {} to enclose blocks of code, Python uses indentation to determine the grouping of statements. Indentation helps establish the structure and hierarchy of the code and is a fundamental part of the Python syntax.
0 Comments