Toggle Navigation
Games
Blog
Class PIN
Join for Free
Sign in
Toggle Navigation
Games
PIN
Join for Free
Blog
Pricing
Contact us
Help center
Sign in
Study
Python in the Console
0
%
0
0
0
Back
Restart
Which command can display a message in the console?
print
Oops!
Okay!
What is the first word needed to define a function?
def
Oops!
Okay!
What comes after "def" when defining a function?
The function name
Oops!
Okay!
How many smileys will be printed to the console?
9
Oops!
Okay!
What is ASCII art?
text-based art that can be printed to the console
Oops!
Okay!
Each command in the body of a function must be...
indented
Oops!
Okay!
When printing to the console, what comes after the print keyword?
Parentheses
Oops!
Okay!
What comes after the parentheses in a function definition?
colon
Oops!
Okay!
Before a function can be called, it must be...
defined
Oops!
Okay!
Will this command execute properly when run?
yes
Oops!
Okay!
What is missing from this statement?
quotes
Oops!
Okay!
What will be printed when this code runs?
Trick question! There is an error - the function names do not match
Oops!
Okay!
What two things are needed to call a function?
function name, parentheses
Oops!
Okay!
True or False: Console applications use what is known as a graphical user interface
False
Oops!
Okay!
What will be printed when this code runs?
hi hi
Oops!
Okay!
True or False: Console applications are entirely text-based
True
Oops!
Okay!
Your experience on this site will be improved by allowing cookies.
Allow cookies