Python Syntax Flashcards

Understand basic Python syntax

1
Q

What are the two methods to execute Python syntax?

A
  1. ‘print’ command

2. Running Python file in command line

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

What purpose does indentation serve in Python?

A

Python uses indentation to indicate a block of code

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

What is a variable?

A

Placeholder for data

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

What is a comment?

A

In-code documentation that is not executed

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