Python Syntax Flashcards

1
Q

As we learned in the previous page, Python syntax can be executed by writing directly in the Command Line:

A

Execute Python Syntax

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

Indentation refers to the spaces at the beginning of a code line.

A

Python Indentation

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

Python uses indentation to indicate a block of code.

A

Python Indentation

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

The number of spaces is up to you as a programmer, the most common use is four, but it has to be at least one.

A

Python Indentation

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

You have to use the same number of spaces in the same block of code, otherwise Python will give you an error:

A

Python Indentation

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

In Python, variables are created when you assign a value to it:

A

Python Variables

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

Python has no command for declaring a variable.

A

Python Variables

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

Python has commenting capability for the purpose of in-code documentation.

A

Comments

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