Code indentation must be 4 spaces when creating a code block?
Answers
Answered by
0
- Assuming your question is a subset of the Python programming language.
Not necessarily. According to PEP8, you can use either 'only SPACES' or 'only TABS' and not both for indenting. Space-indenting but with consistent number of spaces.
Additional Information - The problem arises because braces '{ }' are not used in Python
- Else,
As long as your language has braces in its syntax (if, object/class, enum, etc.), tabs or spaces, it doesn't matter.
Similar questions
Math,
5 months ago
Computer Science,
5 months ago
Computer Science,
5 months ago
English,
10 months ago
Physics,
10 months ago
Science,
1 year ago
Math,
1 year ago
Computer Science,
1 year ago