Indention Flashcards

1
Q

In Python, indentation is crucial because it defines the structure of the code and it determines which lines of code belong to which parts of the program.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Python 3 __________ mixing the use of tabs and spaces for indentation.

1) Allows
2) Disallows
3) Encourages

A

2) Disallows

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Select the recommended form of indentation in Python:

1) Tabs
2) Spaces

A

2) Spaces

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In Python, it is permissible to break before or after a binary operator, as long as the convention is consistent locally.

1) True
2) False

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly