Computer Science, asked by prashantgoad, 10 months ago

Code indentation must be 4 spaces when creating a code block?

Answers

Answered by LuckyLao
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