Python Syntax Flashcards
Understand basic Python syntax
1
Q
What are the two methods to execute Python syntax?
A
- ‘print’ command
2. Running Python file in command line
2
Q
What purpose does indentation serve in Python?
A
Python uses indentation to indicate a block of code
3
Q
What is a variable?
A
Placeholder for data
4
Q
What is a comment?
A
In-code documentation that is not executed