stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Python Basic Syntax Flashcards | StudBud
Explore
/
Python Basic Syntax
Python Basic Syntax
12 terms
·
StudBud Administration
·
191 plays
A #review game on the basic #syntax of the #Python #programming language.
Flashcards
12 cards
F
Practice quiz
P
Host live
L
Questions
12
Answers
1
Comments (personal or instructional) in Python are preceded by the _____ sign.
Stop
Pound
Asterisk
Percentage
2
To leave an intentional blank line, you must type in the following code:
\n
\line
\l
\blank_line
3
TRUE or FALSE. Python identifiers may contain special characters such as %, $, and @.
TRUE
FALSE
4
The number of spaces in indentation is _____, but all statements must be equally indented.
Zero
Fixed
Undefined
Variable
5
The function used to display the famous "Hello, Python World!" statement is the _____ function.
print
exec
def
if/else
6
A group of statements that comprise a single block of code are referred to as _____.
Suites
Modules
Classes
Families
7
Python uses all these quotes except:
Single
Double
Triple
Inverted
8
TRUE or FALSE. Multiple statements in the same block of code may be separated by a semicolon.
TRUE
FALSE
9
Python files are always saved with the extension:
.org
.html
.index
.py
10
Leaving a blank line in your Python code will be _____ by the Python program.
Deleted
Observed
Read
Ignored
11
Python uses ____ to indicate class and function definitions or flow control.
Modules
None of the above
Suites
Blocks of code
12
A Python identifier may contain which of the following characters:
The numbers 0-9
Lowercase letters
All the above
Underscores